Di you teach soooo well.Blessed to get notified about your channel.Thank You!!
@AyushiSharmaDSA
2 жыл бұрын
Thank you so much Sonia. Means a lot :)
@prashantjain3959
Жыл бұрын
thanks for always proving for the best explanation
@amanahirwar9236
2 жыл бұрын
thank you for the optimized solution and all the best for your future.
@ayushidalal5488
Жыл бұрын
Great explanation! I was able to write the code myself, thanks :)
@SonuKumar-uq2rb
Жыл бұрын
wow! the way of explaining is superb. keep it up sister.
@AyushiSharmaDSA
5 ай бұрын
thank you, glad it was helpful :)
@dheerajthakur6443
2 жыл бұрын
Feels like yaad karke aayi hai
@harshsharma5066
Жыл бұрын
This question was asked in Josh Technolgy coding round but I was unable to solve it
@pushpendrapal8393
11 ай бұрын
You have explained very well
@AyushiSharmaDSA
9 ай бұрын
thank you :)
@parthkukkar7770
2 жыл бұрын
thanks a lot understood completely
@RiyaSingh-nj1fx
2 жыл бұрын
Waah waah kya khub samjhaya hai behen tumne....really appreciate
@AyushiSharmaDSA
2 жыл бұрын
Thank you Riya :)
@lalitbisht8381
6 ай бұрын
Nice explanation
@AyushiSharmaDSA
5 ай бұрын
Thanks :)
@jatinlanje5741
2 жыл бұрын
well explained!
@ParmodYadav
Жыл бұрын
Amazing Explanation Mam
@AyushiSharmaDSA
5 ай бұрын
thank you, glad it was helpful :)
@pawankumarpandit1822
Жыл бұрын
nice explanation mam
@pawankumarpandit1822
Жыл бұрын
i always watch you on black tshirt di...........
@shaikfahim1232
2 жыл бұрын
didi,should we have to use j=count-1 or is it right as you mentioned above
@nvyashwin5512
2 жыл бұрын
ya i too have the same doubt
@harshkumar6945
2 жыл бұрын
@@nvyashwin5512 same doubt
@pareekshithachar3788
Жыл бұрын
j = count, because we have already calculated for 0-count-1 initially, Now the for loop is deciding to add J and remove I, that is add the j= count element and remove i=0 element. Hope it helped
@neelesh621
2 жыл бұрын
very well explained!!!
@AyushiSharmaDSA
2 жыл бұрын
Thank you, glad it was helpful :)
@pratikbhange4780
3 жыл бұрын
Achha explain kiyaa thnx👍
@AyushiSharmaDSA
3 жыл бұрын
Welcome. Glad it helped :). Please do share channel with your friends and juniors.
@ajit287
3 жыл бұрын
@@AyushiSharmaDSA Already shared...
@pratikbhange4780
3 жыл бұрын
@@AyushiSharmaDSA jii
@hariaiyar1119
3 жыл бұрын
Great explanation
@AyushiSharmaDSA
3 жыл бұрын
Thank you. Glad it helped :)
@anweshaaddya5459
Жыл бұрын
why is ++count and not ++count and also ++i and ++j instead of i++ and j++? could you pls explain
@ktprasanth007
6 ай бұрын
Anyways these are written as increment statements, they work the same way. In for loops the increment statements will be executed at the end of iteration
@srinivasmadupada4519
Жыл бұрын
Can I use Dutch flag algorithm
@SushilYadav-to2mi
Ай бұрын
pre increment kyu kiya hai variables ko? Post increment bhi kr skte hai ky?
@AyushiSharmaDSA
Ай бұрын
Yes kr skte hai
@shivsagarshah24
3 жыл бұрын
nice explanation
@AyushiSharmaDSA
3 жыл бұрын
Thanks mate :)
@vinaymaurya3038
2 жыл бұрын
Nyc explanation
@AyushiSharmaDSA
2 жыл бұрын
Thank you :) glad it was helpful
@vinaymaurya3038
2 жыл бұрын
@@AyushiSharmaDSA maam, u explained solution in simple way i hope it will help more students to understand this question.
@AyushiSharmaDSA
2 жыл бұрын
@@vinaymaurya3038 thank you Vinay🙂
@thejavascriptworkmate8533
2 жыл бұрын
Thanksu
@AyushiSharmaDSA
2 жыл бұрын
Welcome 🤗
@shalabhbhatiya5659
2 жыл бұрын
@@AyushiSharmaDSA didi how can i find subarray in (n2) array using loops?
@godisnoob675
2 жыл бұрын
i diidnt understand the last for loop , why j=count?
@tarunkumar.d8379
2 жыл бұрын
As we need to group all elements less than or equal to k together, we take the count of such numbers then create a window of that size, thats why j is initilized with count.
@tekbssync5727
3 жыл бұрын
My code gives TLE in gfg , I have applied same concept as yours. [ What could be the reason for this TLE?] int minSwap(int *a, int n, int k) { int ans= INT_MAX; int cnt=0; for(int i=0; i
@pavanabhishek2053
2 жыл бұрын
This code doesn't give TLE if you add below corner cases for two conditions where no swaps are required and u should return 0 when u encounter any of the below: --> if(cnt==0 || cnt==n) return 0; 1. When there are no elements less than or equal to k. 2. If all the elements are less than or equal to k.
@tekbssync5727
2 жыл бұрын
@@pavanabhishek2053 yeah its working now , thank you !!!
@rubaborithm1911
3 жыл бұрын
in third FOR loop ,shouldn't we start by i=1,j=count+1.Because we have solved this window in second for loop. ALSO IT COULD CAUSE ERROR AS IN THE SAME WINDOW I=0 TO J= COUNT ,WE ARE DOING OPERATION TWICE .Please reply ,may be i M WRONG.
@rubaborithm1911
3 жыл бұрын
,FOR ex suppose we choose a window 6,7,2 .bad word =2 if k=3 in 2nd for loop .But when we come to third for loop since 6 at index=0 >3,we decrease bad word to 1 which is wrong i think
@viralchingaari2184
2 жыл бұрын
we have already calculated for index 0 to count-1 i.e 2 and in second we start i=0 and j=count(3) here i still has the prev value bcz it has to be excluded and j is already included if we start as i=1 then we would be excluding 1 but in this case we have to exclude 0 and j is already at 3 9
@dharanyuvi6951
2 жыл бұрын
ji how about, if u could explain in english? Saying because there are already many youtube channels following babbar sheet in hindi But no one in english
Пікірлер: 57