Daily Temperatures (LeetCode 739) | Full solution with animations and examples | Study Algorithms

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

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

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

    At 8:33 I forget to push the element 69 or index [4] in the stack. Sorry for the confusion. In the next iteration it will pop out since 69 is smaller than 71.

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

    Best and the easiest explanation till nowwwwww

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

    Great bhai !!! I know you are a busy man but can you please upload more questions from leetcode (when you find time) ? Your way of explaining is really good.

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

      Thanks Anand, I upload a video every week and try to be consistent with it.
      Creating videos in this depth and quality takes a bit of time. I don’t want to compromise on the quality. Hope you understand.. :)
      My videos are made in such a way that you can watch them on any device.

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

    One thing that help me in this video was that you remender me that it is a problem similar to next greatest element

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

    At 8:40 why didn't you store 69 ??

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

      You are absolutely correct, 69 should have been added to the stack. My error. Thanks for pointing that out.
      The solution will still remain the same though as 69 will get popped out in the next step.

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

      @@nikoo28 For 2 days I was frustrated due to this one thing, I was really confused whether did I missed something or it was something from your side.
      BTW that day I had disliked this video but today after this clarity I have reversed it now. Liked it buddy👍

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

      @@molyoxide8358 once again...so sorry for the confusion

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

      Thanks buddy, had the same doubt!

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

      I was also confused with this part. I did dry run twice and realize its video mistake. But, looking at comments i was 100% sure it was video mistake. @nikhil can you add something video for future clarification or you can also pin these comments. Thanks

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

    Amazing explanation! Please upload the solution of 'Word Search 2' problem using the trie data structure?

  • @anshumaan1024
    @anshumaan1024 7 หลายเดือนก่อน +2

    nice explanation 🙂

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

    daaaaaaaamn , i have a headache but i feel happy also
    thank you bro thats helped a lot

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

    very clear explanation ! thank you

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

      Glad it helped

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

    Thank you for this. You're a excellent teacher.

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

    wow literally the explanation is vvvvvgood man keep it up

  • @sharikkumar-z9x
    @sharikkumar-z9x 26 วันที่ผ่านมา

    u are using stack and array both , still space complexity is o(n) how?

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

    great explaination

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

    This helps a lot!! Followed.

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

    what a great explaination bhaiya thanks alot . Please keep making such amazing videos.

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

      Always welcome

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

    Thank youuuuuuuuu so muchhhh bhaiyaaaaaaaa 😍😍😍😍😍😍😍😍😍😍

  • @hannanhub1717
    @hannanhub1717 18 วันที่ผ่านมา

    thanks sir

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

    great explanation

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

    brilliant brilliant

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

    Hey Thanks Man!

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

    Thank you

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

    can anyone provide me the Python Code, Great explanation, I thoroughly understood the code

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

    As we are using stack can we write a recursive code for this question

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

      what will be your approach? try creating a pseudo code for it.

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

    69 and 71 ko push krvane vala step gyab kr diya apne confusion ho gya ! aage se dyan degeye aaise mat krye

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

      so sorry for that, I have added a comment to clear the confusion

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

    LOL