632 Smallest Range Covering Elements From K Lists

632. Smallest Range Covering Elements from K Lists This stupid problem… I’ve read the solution 2 months ago and failed to understand it. I know it will keep hunting me and today it comes back in another problem list… Idea In this section, don’t worry too much about how we implement this using code, just get the rough idea, in the end, the idea of how we solve it matters, the code will naturally comes out when the idea is clear....

April 15, 2023 · mimimi

2402 Meeting Rooms Iii

2402. Meeting Rooms III Ideas Heap comes to my mind when I know that I need to “schedule the earliest meeting” and “use smallest room index”. The thinking process and some decisions we need to make: when there is an available room, should we just take it? yes if we haven’t started any meeting else we might have some meeting rooms that were previously occupied but now ready to be used....

April 12, 2023 · mimimi