Maximum Sub-Array Sum (LeetCode 53) | Kadane's Algorithm | Study Algorithms

  Рет қаралды 30,045

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 25
@pianolessonswithbless879
@pianolessonswithbless879 2 ай бұрын
Why is your channel still less than 500k subs, honestly cabt believe it 🎉🎉Good content out herr hust saw your channel today
@anonlegion8331
@anonlegion8331 11 ай бұрын
Thank you so much. Your videos are really helpful for me in understanding how to approach these problems.
@nikoo28
@nikoo28 11 ай бұрын
You're very welcome!
@srin42
@srin42 3 жыл бұрын
Hey, Your awesome, Please do more videos on frequently asked questions .Please do more content you will get million subscriber's because your content and white board, practical code walk is awesome. Once content grows more you will start to see many subscribers because we like your explanation. I just told my whats app group friends and they will subscribe soon.
@nikoo28
@nikoo28 3 жыл бұрын
Thanks for all the support. To add more and more questions I do take requests. You can dm me or just tell me the question in comments. I too wish I could make more frequent videos…but don’t want to do any compromises on the quality. Thanks for sharing the video to your friends. This really motivates me.
@topricano9964
@topricano9964 4 ай бұрын
I'm afraid of this problem because of it's name "Kadane's Algorithm" ... After ur video I went to GeeksForGeeks and solve this also solved it in Leetcode... Thankyou so much!!... I thought DSA is very hard for me..But ur explanations made it very easyy!!
@omsudhamsh.h
@omsudhamsh.h 6 ай бұрын
The explanation is so good! Thanks brother
@kalyanamvenumadhav2245
@kalyanamvenumadhav2245 Жыл бұрын
why are we taking values from 3 (4th index) on wards (right to left) why not we start with 2nd and 3rd indices is there any reason for that
@kishanraiyani7048
@kishanraiyani7048 4 ай бұрын
Thanks brother. The explanation is great and your dynamic programming playlist is awesome. One question: What if we are asked to find that subarray start and end indexes as well ? How we will find ?
@nikoo28
@nikoo28 4 ай бұрын
you will need to keep a track of those indexes. try to write a pseudocode for it
@subee128
@subee128 11 ай бұрын
Thanks
@pallavichaudhary6636
@pallavichaudhary6636 3 ай бұрын
I didn't get which are step 3 and step 4 you are referring to in code comments. Also how those steps are equivalent to the code statement. If possible, could you please relate and elaborate?
@naveenkumar-im6rh
@naveenkumar-im6rh 8 ай бұрын
Thank you so much sir
@Itsallrelative1
@Itsallrelative1 4 жыл бұрын
why is the sum of the lone element -2, 2? at 3.27
@nikoo28
@nikoo28 4 жыл бұрын
I misspoke over there. The sum of the alone element would be just '-2'
@unemployedcse3514
@unemployedcse3514 6 ай бұрын
awesome brother❤️
@savitrik3596
@savitrik3596 5 ай бұрын
Thank you😃
@mixupthings
@mixupthings 3 жыл бұрын
did not get it pls explain
@nikoo28
@nikoo28 3 жыл бұрын
Which part are you having trouble in understanding? I can help you out.
@priyakoli5572
@priyakoli5572 2 ай бұрын
6+5+1 also would be a max sub array na? I am not getting how 7? Please can you explain
@suhasbangari7852
@suhasbangari7852 2 ай бұрын
contiguous sub array! all elements taken in sub array should be next to each other only
@Nayak_20__
@Nayak_20__ 10 ай бұрын
Hello sir, where i can find this problem in leet code
@nikoo28
@nikoo28 10 ай бұрын
The link is always available in the description.
@nikitadeoree
@nikitadeoree 10 ай бұрын
hey sir why i=1 we get a -7
@nikoo28
@nikoo28 9 ай бұрын
please point me to the timestamp you are having a problem with
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 486 М.
Каха и лужа  #непосредственнокаха
00:15
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 8 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 152 МЛН
Kadanes algorithm | Longest sum contiguous subarray
7:51
Techdose
Рет қаралды 164 М.
Kadane's Algorithm to Maximum Sum Subarray Problem
11:17
CS Dojo
Рет қаралды 722 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Kadane's Algo in 16 minutes || Algorithms for Placements
16:58
CodeHelp - by Babbar
Рет қаралды 203 М.
Каха и лужа  #непосредственнокаха
00:15