Kadane's Algorithm for Maximum Sum Subarray | Dynamic Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
    NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. Here you will learn Kadane's Algorithm of Maximum Sum Subarray. In this question:
    1. You are given an array(arr) of integers.
    2. You have to find maximum subarray sum in the given array.
    3. The subarray must have at least one element.
    To attempt and submit this question, click here: www.pepcoding....
    For a better experience and more exercises, VISIT: www.pepcoding....
    Have a look at our result: www.pepcoding....
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education

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

  • @prashantjha439
    @prashantjha439 3 ปีที่แล้ว +172

    when you look at this algo at so called popular websites like geeks for geeks , you will never be able to understand that. Algorithm like Kadane deserve such lucid explanation. Trust me during my campus placement time i had to memorise even this small algo as i could not understand the internals. Thanks Sumeet, great work...keep inspiring..

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +30

      Glad to know that you liked the content and thank you for appreciating.
      The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
      So, keep motivating, keep learning and keep loving Pepcoding😊

    • @utkarshsharma6650
      @utkarshsharma6650 3 ปีที่แล้ว

      truly lucid

    • @Sarojkumar-yh9uy
      @Sarojkumar-yh9uy 3 ปีที่แล้ว +1

      I m the 46th person who has the same thought😄

    • @avneet12284
      @avneet12284 ปีที่แล้ว +1

      Geeks for geeks has the worst explanations I've seen anywhere.

  • @vishalpathak8266
    @vishalpathak8266 3 ปีที่แล้ว +120

    For native Hindi speakers, this video is a blessing !!

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +4

      I am glad

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

      not just the native speakers. I am Assamese and I find this video quite interesting!! very nicely explained.

  • @vinayaks6418
    @vinayaks6418 3 ปีที่แล้ว +49

    Hands down!! Best DS Algo teacher I have ever seen!

  • @debarchanbasu1962
    @debarchanbasu1962 3 ปีที่แล้ว +24

    After watching this video, I can vouch for it that now I won't forget Kadane's algorithm in my entire life. I've come across numerous blogs and videos explaining this. None of those etched the concept in my mind with such permanence like this video.

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

      Very good, bs yahe chaheye beta. Aise he lge rho aur pdte rho. Don't forget to like and share this video among your friends.

  • @shivendragiri1066
    @shivendragiri1066 2 ปีที่แล้ว +9

    I dont know such a nice tutor is having this much less subscribers while many non eligible people are going along with crowd. I bet you will get recognition very soon

  • @anitaganani1018
    @anitaganani1018 3 ปีที่แล้ว +12

    Your humor makes problems easy to remember. Every time I come across this question, I feel like I have to learn it again. After watching your video I think it's difficult to forget! Thank you so much for the amazing examples.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      If you like my efforts, I request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      th-cam.com/users/Pepcodingabout?view_as=subscriber
      For clearing your doubts, you can join our community on telegram
      t.me/pepcoding

  • @JSR-Abhijit
    @JSR-Abhijit 19 วันที่ผ่านมา

    Two Years Back I saw his video on recursion and since then never faced issues in solving recursion problems but somewhere missed revisiting his channel in the crowd of too many DS videos and again when was unable to understand Kadane algo somehow his video popped up and Kadane seems so easy...Respect

  • @ashishm8850
    @ashishm8850 3 ปีที่แล้ว +8

    Dude, I think you already know this, but you are in a different league altogether. I follow most of the English DSA tutorials on TH-cam, but no one can match your clarity and explanation. Amazing! 🤗👏

  • @mayankverma4638
    @mayankverma4638 2 ปีที่แล้ว +3

    Hands down the best video for Kadane's Algorithm in the entire youtube. Thanks a lot Sumeet sir! 🙏

  • @nikhilgoyal8340
    @nikhilgoyal8340 3 ปีที่แล้ว +14

    After all these years, I finally understood. You are a blessing to DSA Sumit Sir.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +2

      Thanks a ton

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

    just recently discovered this channel and i had to say that my mind is blown after seeing the content that you guys have produced!!! sab ka explain kafi clear hai!!!!!🙏🙏

  • @shikharai1303
    @shikharai1303 3 ปีที่แล้ว +10

    best explanation ..after spending hours on youtube for this algo .. this video is best output

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Keep learning

  • @mallikarjunpidaparthi
    @mallikarjunpidaparthi 3 ปีที่แล้ว +6

    I was able to code this myself by watching the first 6 minutes of the video. Thank you sir

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

      Badiya beta, aise he lge rho.
      Keep learning and keep loving Pepcoding😊

  • @AyushRaj-pm1dz
    @AyushRaj-pm1dz 3 ปีที่แล้ว

    Damn!!....pura youtube dhund lia...hands-down this is the best best best explaination on kadane's algo !!!!!!

  • @rockbrand753
    @rockbrand753 3 ปีที่แล้ว +1

    mera bhai .... love you bro..... love you... Thank you thank you thank you .... bhai mja aa gya... zindagi mein to is concept ko bhulne see rha..... god bless you bro....

  • @ahanadrall5661
    @ahanadrall5661 3 ปีที่แล้ว +1

    i had seen 5-6 videos about kadane's algo but still couldn't wrap my head around it. But this is the best one. I didnt think it was this easy!! lol. Thank you so much.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching till the end and trying to understand the what, how, and especially why of the problem. If you like our efforts, would you like to review us here - g.page/Pepcoding/review?rc

  • @JustAnOutdoorPerson
    @JustAnOutdoorPerson ปีที่แล้ว

    Randomly I found this channel and Now Whenever I faced any difficulty to understand problems I search in this channel. The way Sumit sir explain problems it is best I can say he is the best DSA teacher

  • @sargamagarwal4544
    @sargamagarwal4544 3 ปีที่แล้ว +2

    we all owe you for your dedication and teaching sir. Forever indebted to you.

  • @pravinasakhare5572
    @pravinasakhare5572 3 ปีที่แล้ว +1

    After searching a long arrived at perfect video; hum apki train mn shamil ho rahe hai 😊👍

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      I assure you, ki agr shamil hue to zrur fayeda he hoga apko.

  • @pinakeekaushik7803
    @pinakeekaushik7803 3 ปีที่แล้ว +1

    Sir you are the best and I bet you will become the best teacher in India in Next 2 years

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      Will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @anujg3487
    @anujg3487 ปีที่แล้ว

    After three days of reading so many articles, and videos on this topic, even I was doubtful at this explanation at first too, but then when I watched whole video, suddenly I completely understood this, my main doubt was that, when we get negative sum, we we make it zero, but with this train explanation I understand it, I generally don't comment on any video, but for this topic which I struggled for three days, I got my doubt cleared, thank you 🥰

  • @SHIVAMPANDEYSJTG
    @SHIVAMPANDEYSJTG ปีที่แล้ว

    You just nailed it. Its one of the best explanation I have seen on internet for this concept.

  • @shriyapandey2737
    @shriyapandey2737 3 ปีที่แล้ว +1

    This is the Best explanation of Kadane's algo that I have ever come across.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      I am glad you like it
      You can subscribe to our channel here
      th-cam.com/users/Pepcodingabout?view_as=subscriber
      And you can review us here
      g.page/Pepcoding/review?rc

  • @pareshwadhwani2505
    @pareshwadhwani2505 3 ปีที่แล้ว

    Bhaiyya yaar.....me 10-12 din se koshish kar raha tha ye algo samajhne ki. Algoexpert a premium subscription hai mere paas lekin uske videos se mujhe thik se samajh nahi aa raha tha. Aapne samjha diya ab concept bilkul clear ho gaya.

  • @hashcode-ankit
    @hashcode-ankit 3 ปีที่แล้ว +22

    today world is like kadane's algorithm right 100%

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Haha..
      I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
      Keep learning and keep loving Pepcoding😊

    • @AM-cw9wg
      @AM-cw9wg 3 ปีที่แล้ว

      @@Pepcoding Done. Thnx for this awesome content for free.

  • @abhishekprasad6118
    @abhishekprasad6118 2 ปีที่แล้ว

    Nobody explained Kadane's Algorithm this good, on whole youtube. And the best part, It is in hindi
    Thanks Sir

  • @kushagrashekhawat8227
    @kushagrashekhawat8227 3 ปีที่แล้ว +2

    Sir, Read Kadane's Algo multiple times but could never retain it. Now I think I won't be able to forget this train and family story :)

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

      A note of caution.
      Iske notes bnaie aur apne notes se revise kijie, nahi to jis din jarurat padegi us din jaldi se nahi aaega. Kadane's itna basic hai ki iske liye sochna nahi padna chaie.

    • @kushagrashekhawat8227
      @kushagrashekhawat8227 3 ปีที่แล้ว

      @@Pepcoding sahi baat hai sir. Aaj se se notes banana suru krta hu including all previous questions

    • @pranavsharma7479
      @pranavsharma7479 3 ปีที่แล้ว

      @@Pepcoding pen paper notes sir??

  • @adarshanku7988
    @adarshanku7988 ปีที่แล้ว

    After watching even video solutions of this question, i couldn't get the feel of what's going on in the algo. I had to memorise this little code and algo. And then i came here, and trust me guys isse better explanation aur feeling khi nhi aayegi. Now i won't ever forget the algo, needless to say that i won't have to memorise it. Thank you so much sir, great explanation.

  • @ishmeetsingh5635
    @ishmeetsingh5635 2 ปีที่แล้ว

    best explanation of kadane's Algorithm on youtube.

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

    THE BEST EXPPLANATION EVER ON Kadane's Algorithm 🙃 THANK YOU SIR👏🙏💖

  • @abhisheksharma1031
    @abhisheksharma1031 3 ปีที่แล้ว +1

    I don't know why but your explanation for this is way more clear and satisfying then others.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thankyou buddy!
      I am glad you liked it. I also hope that you are watching till the end and trying to understand the what, how, and especially why of the problem. If you like our efforts, will you like to review us here - g.page/Pepcoding/review?rc

  • @anweshangoswami5636
    @anweshangoswami5636 2 ปีที่แล้ว

    Watched pepcoding for the first time....and got a sigh of relief that finally there's someone jo chizo ko itna simple tarike se samjhate ho...😌😌

    • @Pepcoding
      @Pepcoding  2 ปีที่แล้ว

      Please checkout nados.pepcoding.com once and comment back.

    • @anweshangoswami5636
      @anweshangoswami5636 2 ปีที่แล้ว

      @@Pepcoding Very NIce Platform...Thanks for the response😅

  • @AbhishekKumar_02
    @AbhishekKumar_02 3 ปีที่แล้ว

    Kash mein ye channel mein pehle dekh chuka hota....mtlb khtrnak explanation. ❤ grda mcha dea ap toh. Iss video ko dekhne me baad mere hath ruke nae subscribe button pe jane se

  • @govind_mall
    @govind_mall ปีที่แล้ว

    when i search for dsa problem on yt and found your video , i like to prefer your video as your explanation is awesome...

  • @subham5785
    @subham5785 3 ปีที่แล้ว +1

    Seriously bhaiya, youtube pe itne acche lecture Kadane's ka aur kahi nei hai.

  • @tubakhalid5222
    @tubakhalid5222 3 ปีที่แล้ว

    All well known platforms like gfg , w3s and many more have given a complex explanation of this. But sir you made it a piece of cake. Thank you so much bow down to you !

  • @anil7931
    @anil7931 3 ปีที่แล้ว +1

    Only video on youtube which helped me to understand kadane's algorithm.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Glad to know.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )

  • @DurgaShiva7574
    @DurgaShiva7574 2 ปีที่แล้ว

    this is the best explanation in this whole UNIVERSE, overwhelmed by your teaching way and understanding, hats off to u sir.

  • @rahulkamboj4603
    @rahulkamboj4603 ปีที่แล้ว

    this channel is really underrated.

  • @Ak-bs2gy
    @Ak-bs2gy 2 ปีที่แล้ว

    sir dil jeet liya aapne .......thank you so much for such an easy explanation

  • @pranjaljain7659
    @pranjaljain7659 2 ปีที่แล้ว +1

    BEST EXPLANATION EVER !!!

  • @abhishekjain5420
    @abhishekjain5420 3 ปีที่แล้ว +1

    sir aap bahut accha padhate ho. I liked your bit manipulation playlist a lot.

  • @ankur.singhs2111
    @ankur.singhs2111 4 ปีที่แล้ว +1

    Sir if any of your student has cracked Android Developer job then please make a video with him talking about his preparation and interview experience. Much needed sir.

  • @kartikmehta17
    @kartikmehta17 2 ปีที่แล้ว

    Apki explanation samajkar hi code kardiya or leetcode pe pehli baar m submit. Wow

  • @KalpitSharma
    @KalpitSharma 2 ปีที่แล้ว

    This is the best explanation on Internet for Kadanes Algo

    • @Pepcoding
      @Pepcoding  2 ปีที่แล้ว

      Glad it was helpful!
      For better experience, visit nados.io, where you will get well curated content and career opportunities.

  • @mohammadmonirhossain6214
    @mohammadmonirhossain6214 2 ปีที่แล้ว

    Somebody finally explained it very well.

  • @dhruvgoyal2066
    @dhruvgoyal2066 2 ปีที่แล้ว

    What an Explanation!!
    This channel is really underrated...

  • @ashwaryarathore6128
    @ashwaryarathore6128 ปีที่แล้ว

    me toh nikhatoo hu 😂Hands down the best video for Kadane's Algorithm in the entire youtube. Thanks a lot Sumeet sir!

  • @shreyasvishwakarma8979
    @shreyasvishwakarma8979 2 ปีที่แล้ว +1

    best tutorial. Subscribed with notification

  • @dnyaneshghodse3249
    @dnyaneshghodse3249 3 ปีที่แล้ว +1

    No One Can Explain Better Than This.....Subscribed.✅.!!!

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Welcome aboard!

  • @vrindasharma4035
    @vrindasharma4035 2 ปีที่แล้ว

    Haven't seen a better explanation, watched kadane's for like an hour on other channels... but u made it so simple.🤩🤩🤩

  • @jayprakashjaiswal8220
    @jayprakashjaiswal8220 ปีที่แล้ว

    this is called teaching man,awesome

  • @souravmissi9234
    @souravmissi9234 2 ปีที่แล้ว

    Sir ek bande ne aapki video recommend kia tha after this video i m ur fan sir 🙏🙏🙏🙏😇😇😇😍😍😍

  • @AKASHKUMAR-li7li
    @AKASHKUMAR-li7li 7 หลายเดือนก่อน

    What a man yaar, such a smooth explanation....😍😍😍😍

  • @sanamukhtar4008
    @sanamukhtar4008 ปีที่แล้ว

    you are such a blessing for beginner coders sir . I am grateful that i found your channel. Thank u so much sir. :)

  • @prathamsinghal5261
    @prathamsinghal5261 2 ปีที่แล้ว

    Some Award should be given to this kind of the explaination.

    • @Pepcoding
      @Pepcoding  2 ปีที่แล้ว

      Roj gaaliyaan milti hain.

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

    That intuiton was awesome(Great Example). thank you sir that one clearly made by concept clear

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Thankyou beta🥰❤️

  • @ashutoshjha5356
    @ashutoshjha5356 3 ปีที่แล้ว +1

    best channel to learn dsa for cracking faang placements.
    Thank You sir!

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

    • @ashutoshjha5356
      @ashutoshjha5356 3 ปีที่แล้ว

      @@Pepcoding ofcourse!

  • @TomarSahabVlogs
    @TomarSahabVlogs 3 ปีที่แล้ว

    thanks at 7:20 I just coded the algorithm without seeing the program int prevSum = nums[0];
    int maxSum = prevSum;
    for(int i = 1; i < nums.length; i++) {
    prevSum += nums[i];
    if(prevSum < nums[i]) {
    prevSum = nums[i];
    }
    if(prevSum > maxSum) {
    maxSum = prevSum;
    }
    }
    return maxSum;

  • @ashishSinghSengar17
    @ashishSinghSengar17 3 ปีที่แล้ว

    This is the simplest explanation ever, sir!!! respect ++

  • @HuderabadInfra
    @HuderabadInfra 3 ปีที่แล้ว

    Sir, you are the legendry teacher, soon I will join JSP once after completing my basic DS tutorial from your playlist.

  • @JyotiSharma-wb1vy
    @JyotiSharma-wb1vy ปีที่แล้ว

    You are just amazing sir. One of the best explanation of Kadane's Algorithm so far. It was like learn with fun! Thank a lot🤗

  • @sukanyasinha3583
    @sukanyasinha3583 3 ปีที่แล้ว

    Kadane's itna acha koi nhi smjhaya poore you tube videos me ..thankyou sir

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thankyou bache😊

  • @ashimdas4734
    @ashimdas4734 22 วันที่ผ่านมา

    Bhai , jab Kadanes Algo dekh teh hain, toh lagta hai ki , itna confusion hai , aur samjh ne ke baad , lagta hai ki yeh kya hai??
    yeh explanation kabhi bhi nahi bhulunga .
    Thanks Sir .

  • @simrankak7045
    @simrankak7045 3 ปีที่แล้ว +1

    Never thought this could be made so very easy too understand. Thanks a lot :)

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Glad it helped!

  • @paruldang952
    @paruldang952 3 ปีที่แล้ว

    One of the best videos I ever found on TH-cam. Thank you very much for explaining in such a wonderful way.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      th-cam.com/users/Pepcodingabout?view_as=subscriber

  • @__RohitDevar
    @__RohitDevar 3 ปีที่แล้ว +1

    Great explanation bro.....
    But don't know y people run behind fascinating channels rather than conceptual channels.
    Ur channel is most underrated.
    Hope one day it will be no 1 in IT teaching utube channels ..

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thank you so much you kind words. Keep learning, Keep growing and keep loving Pepcoding!😊

  • @RajGupta-fv7xb
    @RajGupta-fv7xb 3 ปีที่แล้ว

    You are the best teacher on TH-cam sir ♥️♥️

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thank you for appreciating.
      The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
      So, keep motivating, keep learning and keep loving Pepcoding😊

  • @prayagpatel9136
    @prayagpatel9136 2 ปีที่แล้ว

    great explanation!!!!never actually understood before this

  • @starcaptain4216
    @starcaptain4216 ปีที่แล้ว

    Samajh me nhi aata ki Java easy hh ya hard
    Ese itna easy kon samjhata hh bhai
    Jabardast explanation ever

  • @heavycoderOP
    @heavycoderOP 2 ปีที่แล้ว

    Best Teacher so far on the whole youtube (only true students will understand this)

  • @pallavitsaxena9511
    @pallavitsaxena9511 3 ปีที่แล้ว

    went through a lot of documentations and watched a lot of videos but sir your explanation was just outstanding . u made kadane's algorithm just a very easy topic. thank u so much sir please keep uploading such contents.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      th-cam.com/users/Pepcodingabout?view_as=subscriber

  • @nepalesecreator8671
    @nepalesecreator8671 3 ปีที่แล้ว

    Best video on TH-cam for this algorithms explanation.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Glad it was helpful! and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @asktostranger8296
    @asktostranger8296 2 ปีที่แล้ว

    Bahiiii sahab
    Rona aa gaya tha geeks for geeks ko dekh
    Ke
    Fir humare Prabhu prakat hue 🙏😍

  • @abhijain8295
    @abhijain8295 3 ปีที่แล้ว

    best analogy of kadane's algo I have heard till today.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thankyou beta!
      I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @sarthakkhera3997
    @sarthakkhera3997 2 ปีที่แล้ว

    King you dropped this 👑🙇‍♂

  • @ChowdhuryMaksud
    @ChowdhuryMaksud 3 ปีที่แล้ว +1

    Explained in the best and easiest way

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Keep learning, keep growing

  • @iamanonymous2
    @iamanonymous2 ปีที่แล้ว

    i became your fan sir! greatly explained.

  • @akashverma1640
    @akashverma1640 ปีที่แล้ว

    Best explanation so far….. ✌🏻❤️

  • @poorvidubey8296
    @poorvidubey8296 2 ปีที่แล้ว

    It is an amazing way of explaining solutions. Best explanation for Kadane's algo.

  • @atishayjain5981
    @atishayjain5981 3 ปีที่แล้ว +1

    best video on kadane's algorithm

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      Thank you so much

  • @shohanur_rifat
    @shohanur_rifat 3 ปีที่แล้ว

    Great content vai.Respect from Bangladesh.

  • @snehasish9954
    @snehasish9954 3 ปีที่แล้ว

    best explanation with real life example ,I have ever seen. Thank you sir. By the way....kingfisher kaa malik.....good one

  • @SumitSingh-wz3wt
    @SumitSingh-wz3wt 2 ปีที่แล้ว

    after completing this video i liked and subscribed

  • @ItsAbhiVlog
    @ItsAbhiVlog 2 ปีที่แล้ว

    5:40 arye bhai tum toh riste turwa dooge ... btw best explanation keep up the good work !

  • @zafdell8170
    @zafdell8170 3 ปีที่แล้ว

    Sir kya bataya h apne awesome
    You are the best teacher over youTube for kadens algorithm

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว +1

      I am glad. Your kind words are the kind of motivation that truly help me in making more and more content. Especially, these days, not everybody is generous with motivating anybody either. It means a lot.😊
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @vikasshah5564
    @vikasshah5564 3 ปีที่แล้ว +2

    Really easy explanation.. intuitive part really made algorithm so simple.. Thanks

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching videos till the end.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
      Keep learning and keep loving pepcoding!😊

  • @siddharthsahu8763
    @siddharthsahu8763 3 ปีที่แล้ว

    the way you explained with humor🙏.

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      th-cam.com/users/Pepcodingabout?view_as=subscriber

  • @caterpillar4146
    @caterpillar4146 ปีที่แล้ว

    very simple and clear explanation, thank u sir

  • @mukutdas2877
    @mukutdas2877 2 ปีที่แล้ว

    Sir you are a blessing to DSA....

  • @prakhar11jain
    @prakhar11jain 3 ปีที่แล้ว +4

    Small observation, current sum should be initialise with 0 else it will fail for input which has only 1 element in an array ex. input : [1].. Output will be 2 with your code but ideally it should be 1.

    • @camokid_draws
      @camokid_draws 3 ปีที่แล้ว

      Yes

    • @AMANRAJ-jl5ub
      @AMANRAJ-jl5ub 2 ปีที่แล้ว +2

      Nope, it works fine even for that case. If there's only one element and the cmax and omax are both initialised with that element, answer still would be that element(here,1). Not sure why you said it will be 2.

    • @ashutoshmanorkar5556
      @ashutoshmanorkar5556 2 ปีที่แล้ว

      Look carefully the for loop is being iterated from 1.

  • @a_72_saquibsheikh44
    @a_72_saquibsheikh44 2 ปีที่แล้ว

    Thank you so much Sir. It's really blessing for us to have guys like you...

  • @Sumit-kr5kg
    @Sumit-kr5kg 3 ปีที่แล้ว +1

    Best video on kadane's algo...... Thanks
    Reason why video doesn't have any dislike

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Glad to know that you liked the content and thank you for appreciating.
      The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
      Keep motivating, keep learning and keep loving Pepcoding😊

  • @8bitcoder731
    @8bitcoder731 3 ปีที่แล้ว

    this problem and your way of explanation teaches many important aspects of life :)

  • @nikunjkhakhkhar1030
    @nikunjkhakhkhar1030 3 ปีที่แล้ว

    Are sir kya gazab padhate ho mai to fan ban gaya

  • @sourabhdubey5474
    @sourabhdubey5474 3 ปีที่แล้ว

    Very well explained...I have never seen explaination like this. thank you sumeet

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      wow, this cheers me up. I am glad we at pepcoding could be of help to you. Keep learning. Also, recommend us to your juniors and peers, they may also benefit.

  • @saikarthik2224
    @saikarthik2224 2 ปีที่แล้ว

    Your analogy is true!! Finally I was able to code it myself!!

  • @mebrosinc1455
    @mebrosinc1455 2 ปีที่แล้ว

    Thanks for making this explanation so much easy

  • @mohitrathore8808
    @mohitrathore8808 ปีที่แล้ว

    Love all your tutorials

  • @syedhabeebuddin7637
    @syedhabeebuddin7637 3 ปีที่แล้ว

    Some people claims that they are the best.....but you prove, why you are the best!
    Love you sir 😘

    • @Pepcoding
      @Pepcoding  3 ปีที่แล้ว

      Shukirya bhot bhot apka!
      If you like our efforts, will you like to review us here - g.page/Pepcoding/review?rc

    • @syedhabeebuddin7637
      @syedhabeebuddin7637 3 ปีที่แล้ว

      @@Pepcoding already done ! 😇