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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 25

  • @pianolessonswithbless879
    @pianolessonswithbless879 หลายเดือนก่อน +1

    Why is your channel still less than 500k subs, honestly cabt believe it 🎉🎉Good content out herr hust saw your channel today

  • @srin42
    @srin42 3 ปีที่แล้ว +5

    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.

  • @anonlegion8331
    @anonlegion8331 10 หลายเดือนก่อน +2

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

    • @nikoo28
      @nikoo28  10 หลายเดือนก่อน +1

      You're very welcome!

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

  • @omsudhamsh.h
    @omsudhamsh.h 5 หลายเดือนก่อน

    The explanation is so good!
    Thanks brother

  • @topricano9964
    @topricano9964 3 หลายเดือนก่อน +1

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

  • @pallavichaudhary6636
    @pallavichaudhary6636 2 หลายเดือนก่อน

    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?

  • @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  3 หลายเดือนก่อน

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

  • @subee128
    @subee128 10 หลายเดือนก่อน +3

    Thanks

  • @naveenkumar-im6rh
    @naveenkumar-im6rh 7 หลายเดือนก่อน

    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'

  • @priyakoli5572
    @priyakoli5572 หลายเดือนก่อน

    6+5+1 also would be a max sub array na? I am not getting how 7? Please can you explain

    • @suhasbangari7852
      @suhasbangari7852 หลายเดือนก่อน

      contiguous sub array! all elements taken in sub array should be next to each other only

  • @unemployedcse3514
    @unemployedcse3514 5 หลายเดือนก่อน

    awesome brother❤️

  • @savitrik3596
    @savitrik3596 4 หลายเดือนก่อน

    Thank you😃

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

  • @Nayak_20__
    @Nayak_20__ 10 หลายเดือนก่อน +1

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

    • @nikoo28
      @nikoo28  9 หลายเดือนก่อน

      The link is always available in the description.

  • @nikitadeoree
    @nikitadeoree 9 หลายเดือนก่อน

    hey sir why i=1 we get a -7

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน

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