Arrays Left Rotation HackerRank Solution

preview_player
Показать описание
Arrays left rotation - In this video, I have explained Arrays left rotation hackerrank solution algorithm.
hackerrank Arrays left rotation problem can be solved by using extra array. This hackerrank problem is a part of Practice | Tutorials | Cracking The Coding Interview | Arrays left rotation hackerrank challenge.

For simplicity, I have divided this hackerrank tutorial into 3 parts.
[00:00] Understanding the problem statement.
[02:31] Building the logic to solve the problem.
[09:00] Coding the logic using java (you can use your own preferred programming language).

✚ Join our community ►

📖 Resources ►

✅ Recommended playlists ►

👋 Let’s Connect ►

#JAVAAID #arrayleftrotation #HackerRankSolutions #HackerRankTutorials #HackerRank #JavaAidTutorials #programming #DataStructures #algorithms #coding #competitiveprogramming #java #codinginterview #problemsolving #KanahaiyaGupta #hackerrankchallenges
Рекомендации по теме
Комментарии
Автор

JAVAAID community: YouTube recently changed the way they monetize my content. My channel now needs 1, 000 subscribers so it would be awesome if you could show your support by both watching my videos and subscribing to my channel. please hit the like button too, if you find it useful. if you haven’t already done so.

Monetizing my videos allows me to invest back into the channel with new equipment so a small gesture from you goes a huge way for me. Many thanks for your support!

JavaAidTutorials
Автор

Wow, Amazed. That was quick. Thank you

sunilpatra
Автор

I just wanna say thank you, man! I really appreciate your efforts creating this videos with explanations.

igorbarros
Автор

Thank you so much! I missed % in my program and was trying to understand what's going on. Please share more codes! :)

perihanhill
Автор

yeah!! i got your point
Thank you so muchh sir, i solved this problem using this logic but still i confused so, i decided to watching your video.
Now i know the logic which is behind the code. 😊

suchitragiri
Автор

Awesome observation and explanation!!!! I am happy to come acrossed this post on first day of the new year !!!! Thanks for sharing!!!

dilipshukla
Автор

is the same thing will work when rotation d is greater than array lenght?

sushmitgoswami
Автор

Excellent explanation. Very easy to understand. Thanks very much for providing this.

mihirk
Автор

By vector u can solve like this
vector<int> rotLeft(vector<int> a, int d) {
vector<int>arr;
for(int j=d;j<a.size();j++){
arr.push_back(a[j]);
}
for(int i=0;i<d;i++){
arr.push_back(a[i]);
}

return arr;
}

vrashankraom
Автор

awesome bro you were just very clear about this i loved it

srikarchatla
Автор

Where did you put the input?
I did exactly the same as you did but I dont have the array's elements..

org
Автор

thanks. your channel is the best explanation. keep doing.

FirMizzZ
Автор

Just Vera Level Bro!✨🔥. Expecting more !✨

vigneshhendrix
Автор

Perfect solution and formula explanation such a clean solution

HugoAyala
Автор

Such a nice explanation ...Plz make more videos on Interview Preparation Kit

munazzainamulhaque
Автор

Can we avoid additional space of new array and sort in place from existing array ?

ketanlalcheta
Автор

this logic is not working for rotation which are greater than length of kindly tell any other optimal solution.

arshneetkathuria
Автор

Thanks for showing me an unique method of solving this

SoupTurtle
Автор

One other solution that crossed my mind is using a linked list so that we add the first d elements at the end while also moving the head. Complexity O(d).

shaone_syem
Автор

What if d=1, then RR will be more complex, right ?

DharmendraKumar-utbn