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
This video did a much better job on explaining the intuition behind the solution than many other videos in TH-cam
Cheers lad, glad it helped!!
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
Pleasure's allmine!! Your username always gives a good laugh as well lmfao
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
tysm!! i've been out of the SWE game for a couple of years now so not looking too likely but never say never!
thank you for putting in the effort to make these videos. The explanations are easy to follow and super helpful! Please never stop! :)
So happy you enjoyed it!! I’ll keep plugging along :)
You make it seem so simple. Thank you!
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 ?
Best TH-cam Channel Ever
Thanks a lottt! That really helped! :)
happy to hear!
oooooh this is what i was looking for
that's what i like to hear!
yo you need to upload more. Highkey saving me.
lmfao cheers, i'll try to get around to it more
greaaaaaaaaaaaaat video I finally get it
I understand the implementation part, but I am not sure why we are interested in the earliest end time :(. greedy is tough, man.
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.
@@babybear-hq9yd thank you!
Great explanation. You rock!
Thanks Adriana 😁😁
i still dont get it why heap and not just a list? i mean you can always get the last element with list[-1]
nevermind, the heap keeps the lowest at the "top"
finally got the intuition!!
BAM gotcha intuition!
wish you would have actually draw the heap DS
good feedback for next time, thank you!
Awesome explanation.
thx aashish :)
Thank you!
:) welcome!
Bro you are GOOD