MEETING ROOMS II (Leetcode) - Code & Whiteboard

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • A brief and clear solution to Leetcode #253 Meeting Rooms II.
    Let me know if you have any questions! :)
    HOW TO SOLVE ANY TIME PROBLEM ON LEETCODE:
    • How to Solve ANY Time/...
    leetcode.com/p...
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------
    Let's connect on LinkedIn!
    / aleksmitrovic
    Follow me on Medium!
    / mitrovic.aleksandar
    Questions or suggestions for new videos? Email me!
    babybear4812@gmail.com

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

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

    This video did a much better job on explaining the intuition behind the solution than many other videos in TH-cam

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

    Thank you SO much for using complex drawings and examples in all of your videos. You are seriously fking thourough and good at these explanations

    • @babybear-hq9yd
      @babybear-hq9yd  3 ปีที่แล้ว

      Pleasure's allmine!! Your username always gives a good laugh as well lmfao

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

    Hey man, this explanation is so much better than the other ones I watched. Thanks for really putting in the effort into making sure everything is clear. Please come back to making videos🙏🏼 TH-cam algorithms are promoting smaller channels again, I believe you can make a come back

    • @babybear-hq9yd
      @babybear-hq9yd  2 ปีที่แล้ว

      tysm!! i've been out of the SWE game for a couple of years now so not looking too likely but never say never!

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

    thank you for putting in the effort to make these videos. The explanations are easy to follow and super helpful! Please never stop! :)

    • @babybear-hq9yd
      @babybear-hq9yd  4 ปีที่แล้ว

      So happy you enjoyed it!! I’ll keep plugging along :)

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

    You make it seem so simple. Thank you!

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

    If we sort the intervals based on ending time and remaining solution remains same, Can you please help in figuring out why it do not work ?

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

    Best TH-cam Channel Ever

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

    Thanks a lottt! That really helped! :)

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

    oooooh this is what i was looking for

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

    yo you need to upload more. Highkey saving me.

    • @babybear-hq9yd
      @babybear-hq9yd  3 ปีที่แล้ว

      lmfao cheers, i'll try to get around to it more

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

    greaaaaaaaaaaaaat video I finally get it

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

    I understand the implementation part, but I am not sure why we are interested in the earliest end time :(. greedy is tough, man.

    • @babybear-hq9yd
      @babybear-hq9yd  5 หลายเดือนก่อน

      I haven't looked at this problem or any Leetcode in almost 3 years, but from what I recall, that's roughly covered around 6:30.
      Conceptually, if I need a meeting room & all current rooms are being used/are booked, I am going to look for the one that ends soonest because that is the first one that I will occupy if it is available at my time.

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

      @@babybear-hq9yd thank you!

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

    Great explanation. You rock!

  • @davidleal714
    @davidleal714 4 ปีที่แล้ว

    i still dont get it why heap and not just a list? i mean you can always get the last element with list[-1]

    • @davidleal714
      @davidleal714 4 ปีที่แล้ว

      nevermind, the heap keeps the lowest at the "top"

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

    finally got the intuition!!

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

    wish you would have actually draw the heap DS

    • @babybear-hq9yd
      @babybear-hq9yd  3 ปีที่แล้ว

      good feedback for next time, thank you!

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

    Awesome explanation.

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

    Thank you!

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

    Bro you are GOOD