Rotate Array | Leetcode 189 | Top 150 interview question series

  Рет қаралды 15,930

Technosage

Technosage

10 ай бұрын

Top 150 interview question series
Rotate Array
Leetcode problem number 189
JAVA interview programming playlist:
• Interview Programming ...

Пікірлер: 38
@sachinpatil1010
@sachinpatil1010 6 ай бұрын
Thank you for detailed information. It was really helpful !!!
@nathlvz
@nathlvz 3 ай бұрын
Good explanation!, It is so clear, I undestand the main concept!, Thanks for this videos, I hope more of them!
@BharatFoods145
@BharatFoods145 5 ай бұрын
You teach so well!!
@swastikkumar5773
@swastikkumar5773 5 ай бұрын
Mam please continue your leetcode problem series . it will helpful for us
@user-lz9ru7os3t
@user-lz9ru7os3t 5 ай бұрын
Ma'am, you are the best teacher in KZbin, please solve the top 150 DSA problem in Java ASAP , And it will help us to crack Interview. Thank you ma'am
@yashvardhansingh1903
@yashvardhansingh1903 10 ай бұрын
Hello mam, I don't know how to thank you because you are amazing, The way you teach , the way you solve the problems, applying the approach is much easier even for hard problems, Thank you so much mam for this amazing content........
@TechnosageLearning
@TechnosageLearning 10 ай бұрын
Thanks for the feedback.. Stay tuned for more videos :)
@adityarajsah414
@adityarajsah414 12 күн бұрын
Please do continue with the series, In entire you tube this is the only channel where I am able to understand the solution and co-relate with my approach. I understand because of medical condition you took a break, but please try uploading the videos as soon as possible please Amrita it's my humble request. And if you are not well, Get well soon and then upload the videos.
@TechnosageLearning
@TechnosageLearning 9 күн бұрын
Thank you for your message. We will be starting up with the videos soon.
@lesa7p2lmansion
@lesa7p2lmansion 4 ай бұрын
why did you stop? can you put your linkedin
@PallabChatterjee18
@PallabChatterjee18 3 ай бұрын
Please continue the 150 questions series please maam
@tricksforsolving2804
@tricksforsolving2804 2 ай бұрын
Clear explanation, helpful for me
@paniknoob6439
@paniknoob6439 Ай бұрын
what does the k%nums.length; do?
@tricksforsolving2804
@tricksforsolving2804 Ай бұрын
​​@@paniknoob6439it fix the issue of array index out of exception,if your K is more the array length,then we don't write the value of K directly, just divisible with array length & assign to K
@aasimahsan6167
@aasimahsan6167 5 ай бұрын
please continue the series of the this playlist it helps us alot
@TechnosageLearning
@TechnosageLearning 5 ай бұрын
Hi Due to some medical issues..I am on break..Will continue soon
@shahbazalam162
@shahbazalam162 4 ай бұрын
ma'am please continue the interview series
@brp3522
@brp3522 2 ай бұрын
What happened to you amrita didi we really miss your concepts
@gaurshivam
@gaurshivam 8 ай бұрын
Please continue this series
@TechnosageLearning
@TechnosageLearning 8 ай бұрын
Will start uploading soon..
@CodingJoySoul
@CodingJoySoul 7 ай бұрын
Why have you guys stopped posting solutions?
@TechnosageLearning
@TechnosageLearning 7 ай бұрын
Hi.. Due to some medical issues, We couldn't post solutions for a while..Will continue posting solutions very soon..
@webtestingui7187
@webtestingui7187 10 ай бұрын
Hello,could you please post those questions only
@TechnosageLearning
@TechnosageLearning 10 ай бұрын
Hi...Yes,I will continue this series...stay tuned
@AmitBiswas0142
@AmitBiswas0142 2 ай бұрын
Another 0 ms runtime solution great!!
@paniknoob6439
@paniknoob6439 Ай бұрын
buddy , what does the k%nums.length; do?
@paniknoob6439
@paniknoob6439 Ай бұрын
what does the k%nums.length; do?
@musamehdiyevv
@musamehdiyevv Ай бұрын
public void rotate(int[] nums, int k) { int temp = 0; while (k > 0) { temp = nums[nums.length - 1]; for (int i = nums.length - 1; i > 0; i--) { nums[i] = nums[i-1]; } nums[0] = temp; k--; } }
@Mohd.FaisalKhan-oo9qj
@Mohd.FaisalKhan-oo9qj Ай бұрын
please continue your leetcode problems series
@TechnosageLearning
@TechnosageLearning Ай бұрын
We will be continuing the series soon. We are working on it
@jbr.1
@jbr.1 5 ай бұрын
Please come back
@TechnosageLearning
@TechnosageLearning 5 ай бұрын
Very soon
@aniket5018
@aniket5018 8 ай бұрын
i know we are taking k=k%n for out of bound exceptions but why . i mean how k=k%n can help in this situation??
@piyumifernando2778
@piyumifernando2778 7 ай бұрын
Because if k = 100 (or evertime the value of k > n) after applying k = k % n the answer is k = 100 % 3 = 1. Every time it gets an answer for k which is less than n.
@piyumifernando2778
@piyumifernando2778 7 ай бұрын
So out of bound exceptions didn't appear when k > n.
@anuragpanwar912
@anuragpanwar912 9 ай бұрын
This my updated code hopw uoy like class Solution { public void rotate(int[] arr, int k) { if(arr.length 0) { int last = arr[arr.length - 1]; for (int i = arr.length - 1; i > 0; i--) { arr[i] = arr[i - 1]; } arr[0] = last; k--; } } static void reverseArray(int arr[], int start, int end) { while (start < end) { int temp = arr[start]; arr[start] = arr[end]; arr[end] = temp; start++; end--; } } }
@user-bl1gg1ff1q
@user-bl1gg1ff1q 6 ай бұрын
import java.util.Scanner; public class Main { public static void shiftArray(int[] a, int k) { for(int j=1;j
@nizamuddinkhan7408
@nizamuddinkhan7408 Ай бұрын
time complexity is o(n2) which is incorrect as per leetcode
Rotate Array - Leetcode 189 - Python
8:59
NeetCode
Рет қаралды 133 М.
Lecture21: Solving LeetCode/CodeStudio Questions [Arrays]
33:32
CodeHelp - by Babbar
Рет қаралды 412 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 140 М.
Live Mock Interview with @Striver | MAANG Format | GeeksforGeeks
53:14
If The ''SPOON'S STASH'' Techies is not Broken, so WTF is This🔥
25:56
Techies Official
Рет қаралды 15 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 790 М.
LeetCode Rotate Array Solution Explained - Java
6:50
Nick White
Рет қаралды 84 М.
LeetCode Problems | Medium Question | Rotate Array
22:44
College Wallah
Рет қаралды 12 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,8 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 57 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН