Тёмный

How To Rotate An Array In Java? | Array Rotation | FREE DSA Course in JAVA | Lecture 66 

TAP ACADEMY
Подписаться 79 тыс.
Просмотров 35 тыс.
50% 1

We have to write a program to rotate an array in Java.
What does the rotation of the array mean?
Consider an array 1,2,3,4,5 Rotating this array by 1 in counterclockwise means the newly rotated array will be 2,3,4,5,1.
Similarly rotating this array by 2 counterclockwise means the newly rotated array will be 3,4,5,1,2.
So we have to write a program to rotate an array by a given number k where the positive value of k denotes counterclockwise rotation and negative values of denote clockwise rotation.
This is a basic program that is generally asked in some companies.
Let's check out how you can solve this question with the most efficient approach.
Subscribe ‪@TAPACADEMY‬ for regular coding-related tips.
For more information, fill out this form: forms.gle/8eiU...
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacad...​
#java #array #coding #programming #aarrayjava #javacourse #placementcourse

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@khusheeranjan7848
@khusheeranjan7848 2 месяца назад
Best explanation....
@AnkitKumar-mx1bl
@AnkitKumar-mx1bl 2 месяца назад
Great Explanation by such a great educator
@smrutinayak2628
@smrutinayak2628 4 месяца назад
great explanantion
@parulbhati2373
@parulbhati2373 3 месяца назад
best explanation ever
@Heroff_123
@Heroff_123 4 месяца назад
Best tutorial I ever watched 😃😊
@206_dindayalpatra3
@206_dindayalpatra3 5 месяцев назад
Thank you ❤
@crankyysalt6963
@crankyysalt6963 6 месяцев назад
the besttt sirrrrr keepp goingggg🎉❤❤❤
@survivourff7014
@survivourff7014 3 месяца назад
Bro... Your videos are quite good... We'd be very happy if u create more dsa related topics
@Tech_most
@Tech_most 7 месяцев назад
Thank you u sir
@EngineerbyFate
@EngineerbyFate 4 месяца назад
Hi Rohit Sir, Please continue the series other data structure as well.
@sidsid7464
@sidsid7464 3 месяца назад
Such a amazing explanation
@jayprakashKumar-hp3hw
@jayprakashKumar-hp3hw Год назад
He is such a phenomenal guy educating DSA in a simple and smooth way.
@HarishPrasadP
@HarishPrasadP 8 месяцев назад
if you try on array of 3 elements and rotations as -4, the above code will fail. As 2nd call to reverse function --> reverse(a,-1,2), will fail as the array is out of bounds. As it can't start with index -1. So any rotation to the right (-ve number), which is greater than the length of Array is going to fail with the above reason.
@jithindev9185
@jithindev9185 3 месяца назад
Only 934 likes . It deserves more . This channel is gem compared to other RU-vid gurus with 1 year exp,2 year exp in it industry having minimal knowledge
@ms_007_
@ms_007_ 5 месяцев назад
your teaching is like a Magician..
@hari7110
@hari7110 8 месяцев назад
Bro your teaching is awesome!
@rutikbodkeacademy1247
@rutikbodkeacademy1247 10 месяцев назад
This type of explantion never got anywhere, thank you for making such kind of video
@payalsingh7238
@payalsingh7238 8 месяцев назад
Very nice visualization
@gauribhosale8712
@gauribhosale8712 Год назад
I have gone through the many DsA series on RU-vid and other platforms too. But seriously this is the best channel I have ever found to learn DSA.
@tamilmukbang3789
@tamilmukbang3789 7 месяцев назад
Thank you so much. i understood the concept very well
@ankurmandal8899
@ankurmandal8899 5 месяцев назад
It is me...? Or you can also see that, he looks like KL Rahul...😅 By the way your teaching style and presentation is very good... keep it up sir..🎉
@programmingpartner8624
@programmingpartner8624 7 месяцев назад
Perfect explanation!!!!!💯💯💯💯💯
@tejassalunkheofficial
@tejassalunkheofficial 9 месяцев назад
Best explanation sir ❤ Very clear explanation with super clarity of concepts
@arjunreddy2170
@arjunreddy2170 Год назад
Awesome explanation
@nallapatiDeepak-bl3wx
@nallapatiDeepak-bl3wx Год назад
The Best video I have ever seen on a DSA, Thanks a lot sir for the effort you put in making the concept clear.
@shaikshafiulla684
@shaikshafiulla684 5 месяцев назад
Sir your explaination is just looking like woww
@azadchauhan963
@azadchauhan963 6 месяцев назад
This channel should have million subscriber
@shiyamalanandha3258
@shiyamalanandha3258 Месяц назад
at 26:57 array rotation output is wrong for k=4. 10 should be at 4th index
@raam2508
@raam2508 5 месяцев назад
Definitely the best explanation by any DSA tutor I have ever seen on RU-vid !!
@बैलगाडाशर्यत777
@बैलगाडाशर्यत777 7 месяцев назад
very nicely explained and great visuals ❤❤
@PathanVlogs098
@PathanVlogs098 5 месяцев назад
This explanation is wise and can be understandable to 1st class students too..best explanation ever i heard in my life.
@saksheepapadkar6087
@saksheepapadkar6087 Год назад
Great teaching 🎉
@shubhampatidar3815
@shubhampatidar3815 Год назад
i love your teaching style ....you are awesome .
@TECHLAY-x4f
@TECHLAY-x4f Год назад
Sir😂😂 nice
@vishnubj826
@vishnubj826 7 месяцев назад
The way he is teaching and pictorial representation is quite cool and easy to understand
@rohithbathula1239
@rohithbathula1239 4 месяца назад
Phenomenal explanation no body explain like you thank you so much🎉
@Hasan_770
@Hasan_770 Год назад
Respect for him. Best explanation and best quality content.
@nitishm1274
@nitishm1274 8 месяцев назад
i strong requrest you to continue the series best one please continue the series
@mridulgarg2539
@mridulgarg2539 Год назад
The underappreciated channel. Sir(bhaiya) wonderful explanation thanks.
@AmrutaDange-j3s
@AmrutaDange-j3s 10 месяцев назад
oh my god sir. You made me visualize and understand things so easily. I am very very thankful to you. Instant subscribe to ur channel. thanks. Please never get demotivated or stop making videos sir. People like me struggle to find someone who can teach like this and clear all doubts. Pls keep making videos always.
@naag4852
@naag4852 Год назад
Best Explanation 😮
@RanjanSahoo-f6r
@RanjanSahoo-f6r 6 месяцев назад
Really so amazing video i ever seen on youtube with great visual representation
@AnkiD-ub2ju
@AnkiD-ub2ju 9 месяцев назад
Best explanation
@shivamjha6917
@shivamjha6917 6 месяцев назад
sir ..i have never seen as good as this video content..
@twishanuaichroy1938
@twishanuaichroy1938 9 месяцев назад
Wonderful ❤
@Pradeepkumar-es8qm
@Pradeepkumar-es8qm Год назад
Damn! Such a good explanation with the best teaching tools 🔥. Awesome
@user-vf3eg3wt1p
@user-vf3eg3wt1p 7 месяцев назад
❤❤❤❤❤❤❤❤❤❤
@DennySatyala
@DennySatyala 10 месяцев назад
brilliant🙌🙌
@aniketrawal4961
@aniketrawal4961 8 месяцев назад
How we can do by java 8 Stream api ??
@manulovanshi8638
@manulovanshi8638 8 месяцев назад
thank you sir....
@syamprasadupputalla8233
@syamprasadupputalla8233 Год назад
Thanks you
@gagugaganashree7879
@gagugaganashree7879 Год назад
Amazing sir
@jayanksingh4852
@jayanksingh4852 11 месяцев назад
Sir, Learning DSA from you is like watching Marvel's Movie;
@DiwakarSingh-o1d
@DiwakarSingh-o1d Год назад
mast video hai
@invinciblevikas9553
@invinciblevikas9553 Год назад
excellent
@7smessi803
@7smessi803 Год назад
Vera level sir❤️
@HarshKumar-nf7xr
@HarshKumar-nf7xr Год назад
This guy is awsome, the way he teaches even a donkey can understand
@Cryengineers8205
@Cryengineers8205 Год назад
damn good 😇
@saisooryamarri4042
@saisooryamarri4042 Год назад
Damn Anirudh Ravichander teaches a nice coding apart from music
@uttamsahu8224
@uttamsahu8224 Год назад
lit sir💥
@UtkarshOjha
@UtkarshOjha 9 месяцев назад
Best video found on this question, no-one on RU-vid has covered this topic and made easy to understand, thanks man ,
@viewer_evgeniy
@viewer_evgeniy 10 месяцев назад
That's awesome! But how to achieve all of it without using loops? :)
@karthickjayaraman2090
@karthickjayaraman2090 Год назад
Who are you man? Awesome explanation… reply to my comment
@abhishekkr8077
@abhishekkr8077 Год назад
@karthickjayaraman2090 he is one of the best teacher bro,I am his student.His full name is Rabindra Rohit.We call him Rohit sir. He has his institute in Bangalore named Tap Academy in BTM layout area
@athiyastudies
@athiyastudies Год назад
public class Solution { public int[] solve(int[] A, int B) { B=B%A.length; for(int j=1;j
@harargeetube9807
@harargeetube9807 10 месяцев назад
if condition for b
@Entertainment.Tube0
@Entertainment.Tube0 Год назад
Awesome
@Entertainment.Tube0
@Entertainment.Tube0 Год назад
❤❤❤❤❤ 💯
@grozageorge2887
@grozageorge2887 Год назад
Perfectly explained :)
@richatripathi5919
@richatripathi5919 Год назад
awesome explanation
Далее
POLI и Маша - Сигма бой
00:20
Просмотров 286 тыс.
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 616 тыс.
The Naval Podcast - Naval Ravikant with BeerBiceps | TRS
1:39:16
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36