Тёмный

Arrays Series #4- Find subarray with given sum - Solution Explained in Java 

Code With Ease - By Varsha
Подписаться 4,2 тыс.
Просмотров 7 тыс.
50% 1

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

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@777_Radha_Krishna_
@777_Radha_Krishna_ Год назад
Your logic is awesome
@Artocrate
@Artocrate 10 месяцев назад
best explaination
@harshinsan4752
@harshinsan4752 2 месяца назад
cool as cucumber. like the way u explain. u deserve more subscribers. +1 from my side :)
@codewithease-byvarsha
@codewithease-byvarsha 2 месяца назад
Hey, thanks a ton for the positive feedback and the extra sub! Really glad you enjoy the content!
@muskanverma425
@muskanverma425 5 месяцев назад
thankyou
@deepeshdubey6901
@deepeshdubey6901 Год назад
nyc explanation keep it up
@abhishekthapliyal7933
@abhishekthapliyal7933 2 месяца назад
What if 7 is in first place and you shrink array?
@unemployedcse3514
@unemployedcse3514 16 дней назад
i think test case is failing whn there is single element , like i==j
@letscodewithshivam
@letscodewithshivam Год назад
Nice Explanation 👍🏼
@codewithease-byvarsha
@codewithease-byvarsha Год назад
Glad it helped! Do spread the word with your peers!
@vinny4161
@vinny4161 Год назад
j scope is inside for loop then how can add j+1 to ArrayList later that is outside for loop ?
@codewithease-byvarsha
@codewithease-byvarsha Год назад
we are adding to the list while we are inside the loop
@vinny4161
@vinny4161 Год назад
@@codewithease-byvarsha thankyou actually it is inside for loop only my bad
@sarans2162
@sarans2162 11 месяцев назад
Thanks akka
@dhruva1221
@dhruva1221 26 дней назад
why while loop?
@deeptanuj6249
@deeptanuj6249 День назад
because that inner while loop will keep shrinking till the window becomes valid i.e sum < s...
@kpfingh6269
@kpfingh6269 Год назад
Wont work if any element in array is negative ... please update the logic by keeping in mind this scenario where an element can be negative ...
@thetechbard6204
@thetechbard6204 Год назад
problem is regarding positive integer
Далее
Doors Harpy Hare (Doors 2 Animation)
00:16
Просмотров 991 тыс.
Python vs C++ Speed Comparison
1:04
Просмотров 2,1 млн
Solve Any Pattern Question With This Trick!
57:20
Просмотров 2,4 млн
Is Windows RUINING your Coding Career?
10:52
Просмотров 102 тыс.
Count Subarray sum Equals K | Brute - Better -Optimal
24:09