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

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 26

  • @pianolessonswithbless879
    @pianolessonswithbless879 3 месяца назад +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 Год назад +2

    Thank you so much. Your videos are really helpful for me in understanding how to approach these problems.

    • @nikoo28
      @nikoo28  11 месяцев назад +1

      You're very welcome!

  • @topricano9964
    @topricano9964 5 месяцев назад +2

    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!!

  • @srin42
    @srin42 3 года назад +6

    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 года назад +6

      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.

  • @omsudhamsh.h
    @omsudhamsh.h 6 месяцев назад

    The explanation is so good!
    Thanks brother

  • @kalyanamvenumadhav2245
    @kalyanamvenumadhav2245 Год назад +4

    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

  • @subee128
    @subee128 11 месяцев назад +3

    Thanks

  • @naveenkumar-im6rh
    @naveenkumar-im6rh 9 месяцев назад

    Thank you so much sir

  • @Itsallrelative1
    @Itsallrelative1 4 года назад +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 6 месяцев назад

    Thank you😃

  • @kishanraiyani7048
    @kishanraiyani7048 5 месяцев назад

    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  5 месяцев назад

      you will need to keep a track of those indexes. try to write a pseudocode for it

  • @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?

  • @Nayak_20__
    @Nayak_20__ 11 месяцев назад +1

    Hello sir, where i can find this problem in leet code

    • @nikoo28
      @nikoo28  11 месяцев назад

      The link is always available in the description.

  • @priyakoli5572
    @priyakoli5572 3 месяца назад

    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

  • @mixupthings
    @mixupthings 3 года назад +1

    did not get it pls explain

    • @nikoo28
      @nikoo28  3 года назад +1

      Which part are you having trouble in understanding? I can help you out.

  • @nikitadeoree
    @nikitadeoree 10 месяцев назад

    hey sir why i=1 we get a -7

    • @nikoo28
      @nikoo28  10 месяцев назад

      please point me to the timestamp you are having a problem with