MAX SUBARRAY - LeetCode Coding Problem | Arrays | Kadane's Algorithm

Поділитися
Вставка
  • Опубліковано 28 січ 2022
  • In this video, we solve the problem of the Max Subarray using Kadane's Algorithm given in Leetcode. This problem is based on Arrays and is classified as easy on Leetcode. Learn data structures by solving such problems. Make sure you check out more videos where I teach how you can solve Leetcode problems and improve your data structures and algorithms skills.
    If you want to be a Software Engineer at Amazon, Microsoft, Facebook, Google, or any other FAANG company, you need to be prepared to face such problems. These are very common interview questions for these companies. You can write the code in any programming language you want.
    Problem Link: leetcode.com/problems/maximum...
    Code LInk: github.com/gargd/Leetcode/blo...
    Other videos -
    Learn how to calculate Time Complexity - • Struggle with Time Com...
    How I Learned DSA and Got Selected at Amazon - • How I Learnt DSA and G...
    My Roadmap to Learn DSA - • Roadmap To Learn Data ...
    Leetcode Valid Parentheses - • VALID PARENTHESES - Le...
    Use code THECODESKOOL to get a 10 percent discount on any GeeksForGeeks course.
    Subscribe to my channel for more such videos :D
    Join my Telegram link for interview preparation material and updates:
    t.me/thecodeskool
    You can also reach me at:
    Instagram:
    / thecodeskool
    LinkedIn:
    / deevankshu-garg-602501111

КОМЕНТАРІ • 59

  • @adityamedhe
    @adityamedhe 2 роки тому +20

    Good going, you make the problem appear simpler and solve it in a relaxed way, which is how it should be. I like your calm and silent personality too. Keep it up man

  • @lakshyabamne
    @lakshyabamne 2 місяці тому

    best explaination of Kadane's Algorithm on youtube... amazing

  • @findmyreligion
    @findmyreligion 2 роки тому +5

    Please make more videos like this(solving leetcode and other dsa questions). Please make a playlist.

  • @bunny_4684
    @bunny_4684 2 роки тому +3

    Clean explanation.. love your videos 😊

  • @pushkarverma369
    @pushkarverma369 Рік тому

    bro this was the b est video of this problem i wasn't able to find the best explanantion you have teached it in a very relaxed way not like other big youtubers who are always in a hurry and are not able to teach you in a correct manner

  • @soumyaranjan1433
    @soumyaranjan1433 2 роки тому +2

    Simplest, explanation ever

  • @krishjoshi5548
    @krishjoshi5548 2 роки тому +6

    Finally the best youtuber read my comments in previous videos and completed my request.Bas bhai jaise aapne time complexity ka video banaya tha vaise hi aur videos banaiye it will be like a cherry on cake😁😁😊.BTW love ur videos

  • @vamshidharreddy868
    @vamshidharreddy868 Рік тому +1

    Excellent Explanation

  • @vishaljaiswar6441
    @vishaljaiswar6441 8 місяців тому

    very smooth explanation.. loved it!

  • @itssky09
    @itssky09 2 роки тому +1

    This one is really important bhai..

  • @joshuamahadevan9550
    @joshuamahadevan9550 2 роки тому +2

    Extremely clean explanation. Love your work
    P.s: surprised u don't touch type.. lol

  • @miruken_1000-7
    @miruken_1000-7 8 місяців тому

    Thanks bro, u are my saviour 💪

  • @amanjindal2754
    @amanjindal2754 2 роки тому

    Bhaiya daily aisi problems le aaya kro plz bhai.. 🙏🏼

  • @parallax8916
    @parallax8916 11 місяців тому

    Soo well explained bro!
    Keep it help , bery helpful

  • @rounakmukherjee9540
    @rounakmukherjee9540 2 роки тому +1

    Bhaiya aisehi parate raho acha lagta hai...

  • @mohitsingh6717
    @mohitsingh6717 Рік тому

    bhaiya bhot simple kar diya app ne

  • @amansaxena4446
    @amansaxena4446 2 роки тому

    very simlpe explanation nice video

  • @suryodaya27
    @suryodaya27 2 роки тому

    Please make more videos like this

  • @mohammedsami8521
    @mohammedsami8521 Рік тому

    maza aaya bhai solve karke

  • @Cool-ss7ph
    @Cool-ss7ph 10 місяців тому

    Ab medium krdiya h ye question leetcode walo ne 😂
    I loved your way of explaining bhaiya best explanation I found so far, great 🙏😊

  • @91-ritikjain36
    @91-ritikjain36 8 місяців тому

    you explain it plzz upload whole playlist of leetcode

  • @captainjacksparrow782
    @captainjacksparrow782 Рік тому +1

    tu padha badha achcha hai yar, thank you

  • @YasirAli-pk8de
    @YasirAli-pk8de 2 роки тому

    Bhaiya apne amazon me job lene ke liye competitive programming bhi kari hai kya?Geeksforgeeks ke topic wise questions and leetcode ke topic wise question sare kar lunga to enough rhega kya FAANG companies me job crack krne ke liye?

  • @curiouspatel
    @curiouspatel 2 роки тому

    Nice Bhaiya 👍👍

  • @vinathasree168
    @vinathasree168 2 роки тому

    would you please make tutorials on greedy algorithms

  • @mohammedwaseem8599
    @mohammedwaseem8599 2 роки тому +1

    Bhai Amazon mee work life balance sahi kya?? Kyki leetcode mee kise bol raha taa kii teek nahi hai.

  • @acharyavivek51
    @acharyavivek51 2 роки тому

    Awesome

  • @CGKRAM8018
    @CGKRAM8018 2 роки тому

    @The Code Skool Which *Whiteboard* are you using in this video?
    Thanks, Brother!

    • @Ar-qg2rj
      @Ar-qg2rj 2 роки тому

      I think its white

  • @pavansai9396
    @pavansai9396 2 роки тому

    Do more of this stuff👍

  • @ohiogozaimasu
    @ohiogozaimasu 2 роки тому

    Bhaiya String Compression par bhi bana do please 🥺

  • @jeekakrishna
    @jeekakrishna 2 роки тому +1

    Continue this series before we become leeches in our next birth

  • @VivekSharma-rl5vf
    @VivekSharma-rl5vf 2 роки тому

    Sir aap koi sa bhi random saval karva rahe ho ek playlist hi bana do na kisi topic ki

  • @ashwindev1090
    @ashwindev1090 2 роки тому

    Bhai dsa problems ka pura playlist hi bana do na

  • @ashutoshsingh5524
    @ashutoshsingh5524 2 роки тому

    Bhaiya i need some guidance regarding college entrance exam...i am in class

  • @bhavyaaggarwal8558
    @bhavyaaggarwal8558 2 роки тому +1

    Plz make a video on frog jump problem no good video available regarding this question and plz use BFS approach

  • @samualhalder
    @samualhalder 2 роки тому

    String compression ko v samja do na .

  • @somgupta9588
    @somgupta9588 2 роки тому

    7:47 at time of coding i do not know why vector kis use or its working? 3 line of code
    int MaxSubArray(vector& num)
    Someone can tell me 💻

    • @dishapandit8142
      @dishapandit8142 2 роки тому +1

      Bro the leetcode has given vector by default. It works like a normal array. Think it that way and do a dry run. You'll understand

    • @somgupta9588
      @somgupta9588 2 роки тому

      @@dishapandit8142 thanks 👌but apko reply me deer ho gyi h

  • @AanchalSharma-so4ze
    @AanchalSharma-so4ze 2 роки тому +1

    question me subarray bhi print krna tha .........jiska sum maximum hai...
    or aapne nhi kiya
    🙂🙂

  • @jagdishbehera5010
    @jagdishbehera5010 Рік тому

    Please do that code in java

  • @vaibhavnayak3416
    @vaibhavnayak3416 2 роки тому +1

    bhai amzon ko problem nahi kya apke UA-cam video banane se.

  • @tanishqtanishq3293
    @tanishqtanishq3293 2 роки тому

    Bhaiya mujh se questions solve ni ro rahe 😥😥😥

  • @theedit9028
    @theedit9028 2 роки тому

    Brother i make thumbnails for youtube can i also do it for you?

  • @yo.m_7795
    @yo.m_7795 2 роки тому

    Looking for tech cofounder for my startup. Anyone there ?

  • @ameerakhibkhan7805
    @ameerakhibkhan7805 2 роки тому

    Bro add all problems which u explained in problems playlist

  • @publicuses8589
    @publicuses8589 2 роки тому

    Hello bhaiya Actually I m studying java right now and i m facing problem in coding I mean how to create logic I can easily do basic level codes but in medium level I m facing difficulty so please guide me in java it's a humble request bhaiya 😊😊

  • @cyrus-jg5fy
    @cyrus-jg5fy 2 роки тому

    hii,
    can you please share any youtube channel in hindi for DSA in python.

  • @Frank-vm7vm
    @Frank-vm7vm 2 роки тому

    This is how beard looks if u apply minoxidil

  • @theedit9028
    @theedit9028 2 роки тому

    Sir i do video editing and i also make thumbnails for youtube so are you intrested ?😊

  • @downey0327
    @downey0327 Рік тому

    Would appreciate if u taught in english..

  • @Frank-vm7vm
    @Frank-vm7vm 2 роки тому

    Rename channel to fake beard coder channel will grow exponentially great marketing gimmick 🤣🤣🤣🤣