Maximum Average Subarray (LeetCode 643) | Sliding Window Algorithm | Full solution with animations

Поділитися
Вставка
  • Опубліковано 22 гру 2024

КОМЕНТАРІ • 82

  • @dexterjohnson1842
    @dexterjohnson1842 Рік тому +19

    This video is my first introduction to sliding window, and you explained it very, very well. Thank you!

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

      Glad it was helpful!

  • @dgod245
    @dgod245 Рік тому +10

    not even needcode fully explains problems like this, your explanations are so concise and very easy to understand

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

      so glad you feel this way

  • @samyaknagrale9566
    @samyaknagrale9566 Рік тому +15

    I just have to say that i have searched for many channels and no one teaches like you do. The way you teach and explain is so clear that i understand concepts quickly and clearly! Keep up the good work ❤❤❤🎉🎉🎉

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

      thanks for the kind words :)

  • @anubratsahoo447
    @anubratsahoo447 4 місяці тому +2

    I have watched so many tutorials on sliding window,but none of them simplified the explanation as easy as u( ur code are always easy to approach).

    • @nikoo28
      @nikoo28  4 місяці тому

      Glad it helped!

  • @arslanmuhammad4190
    @arslanmuhammad4190 Рік тому +17

    I want say something to You sir, Your Views may be less and you also have less Subscribers. But Believe me sir, You are a legend. I Learned a lot from of You are Great sir. Please keep on doing for us we are unable to pay the fee of online lectures but you work is free for us. May GOD, be pleased with you, Give You a lot of happiness. Thanks sir. Really Love You.

    • @nikoo28
      @nikoo28  Рік тому +2

      So nice of you

    • @nerduser1000
      @nerduser1000 Рік тому +2

      i second this nikhil !
      I immediately search for your solution video whenever I'm stuck in a problem!

  • @nandiniverma5273
    @nandiniverma5273 Рік тому +3

    I always struggle understanding sliding window problems, but you made it easier thanks !!

  • @SuryaTeja-fs8gt
    @SuryaTeja-fs8gt 2 місяці тому

    What an clear Explanation!! I was so confused about this all along but now Its so clear. Thank You!!

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

    Probably the best explanation of a dsa problem . Keep up the good work.

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

    Thank you so much! You're an absolute legend, and your explanations are super clear and easy to follow!

  • @farhanali4623
    @farhanali4623 Рік тому +2

    till now its best channel for DSA awesome explanation bhai

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

      Thank you so much 😀

  • @sri_dharsh_ni3749
    @sri_dharsh_ni3749 4 місяці тому

    Thank god I've found this channel! your explanation is crystal clear sir

  • @Lumiyo_
    @Lumiyo_ 8 місяців тому +2

    Love the video its rlly well explained as someone who is reviewing this problem.

  • @fahimquicklife8
    @fahimquicklife8 9 місяців тому +1

    Bro your videos are so good, god gifted talent!

  • @berntalz1093
    @berntalz1093 6 місяців тому

    Ok wow!! the explanation is pure class in this video.
    Surely going to watch your videos for any doubts.

  • @toprakgungor131
    @toprakgungor131 Рік тому +3

    simple and basic, loved it

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

    seriously good video, subscribed!

  • @AnuragKumar-qh5de
    @AnuragKumar-qh5de 6 місяців тому

    bada badiya say samjvat balv ho bhiya tohra kay bhagwan salmat rakhay aur turhera kay mehraru badiya dey ehay hamar bhagwan say gujris ba

  • @anand-zk3uj
    @anand-zk3uj 2 місяці тому

    This is the perfect solution I ever found....Thanks and also i learned one new algorithm....

  • @RohanKumar-vc5ii
    @RohanKumar-vc5ii 9 місяців тому +1

    Bhai, you have explained it so well.
    Thanks a lot for the video.

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

    Thank you for the beautiful explanation. Got it very easily👍

  • @myadventures7344
    @myadventures7344 9 місяців тому

    Thank you very much! As a beginner, i found this explanation very helpful!

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

    Now I'm loving CP Awesome Explanations Thanks A Lot Sir!!❣

  • @mayankbadika3101
    @mayankbadika3101 11 місяців тому +1

    Very good Explanation. Thanks a lot 👍

  • @missbluesky2512
    @missbluesky2512 7 місяців тому

    Great video as always. Sir, you're an amazing teacher 💯

  • @DeroCodes
    @DeroCodes 6 місяців тому

    I cannot thank you enough !

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

    Great explanation. Need more explanations like this, not solve a problem. Once we understand the algorithm we can solve any problem. Thank you,

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

    Pushing the algorithm ❤️

  • @likhith7577
    @likhith7577 3 місяці тому

    The best explanation

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

    Well explained, thanks for the video

  • @sumatheultimategirl7477
    @sumatheultimategirl7477 19 днів тому

    Thank you ❤❤ for superb explanation 😊😊

  • @ekremyilmaz9694
    @ekremyilmaz9694 6 місяців тому

    you're on fire dude

  • @Sai-fn4lq
    @Sai-fn4lq Рік тому

    Massive Respect to you sir!!! 😇

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

      thanks for your kind words.

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

    great explanation man

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

    thank you! you explain in a very clear way!

  • @satyendrabhagbole3746
    @satyendrabhagbole3746 4 місяці тому

    Best explanation 👍

  • @shanmugamss6312
    @shanmugamss6312 5 місяців тому

    great explanation ever

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

    Nice explain. Keep it up bro !!!

  • @naveenkarthickr2169
    @naveenkarthickr2169 3 місяці тому

    Great explanation❤

  • @christopherkhajira1540
    @christopherkhajira1540 9 місяців тому

    Very great value

  • @udayrajvadeghar8555
    @udayrajvadeghar8555 9 місяців тому

    Best explanationnnn

  • @damankumar2129
    @damankumar2129 6 місяців тому

    Great explanation 👌 👍

  • @NightCityBeats
    @NightCityBeats 10 місяців тому

    🔥great explanation

  • @Mohit-fe5hx
    @Mohit-fe5hx 7 місяців тому

    It was Awesome explanation....

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

    very informative and clear to unserstand
    😀

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

    Great explanation

  • @ramujanak963
    @ramujanak963 10 місяців тому

    awesome sir....do more videos like this...🙌🙌

    • @nikoo28
      @nikoo28  10 місяців тому

      a new video every week

  • @hardiksharma1412
    @hardiksharma1412 10 місяців тому +1

    you are great

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

    The explanation is very good . one suggestion- can you please explain time/space complexity of bruteforce solution as well.

    • @nikoo28
      @nikoo28  11 місяців тому +1

      I usually talk about it when needed. All brute force algorithms need not be implemented and you cannot say what will the time complexity. Whereas the efficient solution is the fastest, and that is why we can talk about it.

  • @fahimioo
    @fahimioo 10 місяців тому +1

    If someone somehow watches your video, he will definitely stick to this channel.

  • @ruibinzhang
    @ruibinzhang 7 місяців тому

    Could you also please explain question 644?

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

    Hi . Have you given wrong code in the description , when I click on the link it is showing isSubsequence code.

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

      thanks for pointing that out. I have fixed it. :)

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

    Thank you

  • @tirupatirao7521
    @tirupatirao7521 Рік тому +2

    A special series on Graphs will be helpful Sir

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

      I am prepping up for the graph series. Need to design a course in my mind before I can have all of it in videos. Thank you for being patient.

    • @nikoo28
      @nikoo28  10 місяців тому

      The complete playlist on graphs is now available: ua-cam.com/play/PLFdAYMIVJQHNFJQt2eWA9Sx3R5eF32WPn.html

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

    It was the best explanation I've come across for this solution but this solution is not working for leetcode 643 problem as I'm getting output 1.00000 instead of getting 12 .75
    Could you please look and advise on this.

  • @jatin_9911
    @jatin_9911 3 місяці тому

    thank u so much

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

    Sir, I am Doing DSA with JS. I was learning it my own I solved a lot problems. But I am unable to understand AVL Tree and I spend 10 days to learn that but fail. Will You please make a video on AVL Tree.

    • @nikoo28
      @nikoo28  Рік тому +2

      to be very honest, if you are facing problems with AVL trees, you can leave them. They are hardly ever asked in coding interviews, and they do not have real life implementations as well.
      I don't yet have a video for AVL tree in the pipeline...but will try if needed.

  • @anand-zk3uj
    @anand-zk3uj 2 місяці тому

    Bro i request you to make video on "Sliding window median" LC 480.Pls

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

    if i found this video as slide windows tutorial and not as 643 leetcode problem, then i would probably understand window slide algorithm faster

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

      actually the sliding window is a bit more diverse concept, and it covers a lot more topics. I would create a video on that too...until then this just touches the base :)

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

    {First negative integer in every window of size k} please make a video of this problem also this problem is also related to Sliding Window Algorithm .

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

      yes, I will add it to my pipeline of videos.

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

    By the way You look handsome without Cap.😍😝

  • @CPS_XI
    @CPS_XI 9 місяців тому

    💯❤

  • @thalap_74-
    @thalap_74- 3 місяці тому

  • @mowli3885
    @mowli3885 9 місяців тому

    great explanation

  • @iOS1927
    @iOS1927 10 місяців тому

    thank you