rotate array | rotate array leetcode | leetcode 189 | 2 solutions

preview_player
Показать описание


#Array #Rotate #InPlace #Rotate_Array #Interview #Practice #October #Leetcode #Medium #189 #Algorithm #DataStructure #Java #Preparation #NG #nickode #CookCodeTravel #CCT
Рекомендации по теме
Комментарии
Автор

Slowly these questions are becoming addictive

naidusunny
Автор

great explanation sir!!!
I have solved this problem back in 2019 but didn't come up this reverse approach and then find this reverse approach
but today I solved this problem but able to come up with the only intuitive approach O(n)space.
I don't think if someone will be given this problem and if he doesn't know this approach then he would not able come with this approach during the interview.

rhythmjayee
Автор

Appreciate your efforts man, nice explanation.

reelinvestor
Автор

what if k is greater than Length of the array?? Will the first approach work?

QuixoteDoflamingo
Автор

sir, please make a video on house robber I, II I have solved these problems able to do in best complexities just wanted to see others thinking process
but I am only to solve them by first coming up with recursive sol then memorization and then bottom-up
how to come up with the bottom-up approach directly???

rhythmjayee