HackerRank - Left Rotation | Full Solution and Examples | Study Algorithms

Veröffentlicht am: 12 Oktober 2020
auf dem Kanal: Nikhil Lohia
18,830
411

Given an array of integers, you need to perform a left rotation on the array 'k' number of times. This video explains you what is rotation and how can you go about solving the problem. This is a very important interview question and the video shows 2 ways to solve it. Watch the video to know more.

00:00 - Intro
01:14 - Problem Statement and sample test cases
04:46 - Brute Force solution
06:53 - Method 1
09:23 - Method 2
12:31 - Final thoughts

📘 The problem description and solution is available at: https://studyalgorithms.com/array/hac...

📚 Links I talk about in the video
Brute Force Algorithmic Paradigm:    • Brute Force algorithms with real life...  
Problem on HackerRank: https://www.hackerrank.com/challenges...
Code on Github: https://github.com/nikoo28/java-solut...
TestCases on Github: https://github.com/nikoo28/java-solut...

🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalg...

💻 Get Social 💻
Follow on Facebook at:   / studyalgos  
Follow on Twitter at:   / studyalgorithms  
Follow on Tumblr at:   / studyalgos  
Subscribe to RSS feeds: https://studyalgorithms.com/feed/

#hackerrank #programming #tutorial


Auf dieser Seite können Sie das Online-Video HackerRank - Left Rotation | Full Solution and Examples | Study Algorithms mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Nikhil Lohia 12 Oktober 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 18,830 Mal angesehen und es wurde von 411 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!