Meeting Rooms II (LC #253) finds the minimum number of conference rooms needed. Approach : sort by start time, use a min-heap of end times. For each meeting, if start is after or equal to heap top, pop (room freed). Push current end time. Heap size is the answer. Approach : sweep line. Create events for start () and end (), sort by time (end before start if same time), track running count and max. Both run in time. Meta tests understanding of interval overlaps.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
$ curl repovive.com/roadmaps/meta-interview-prep/sorting-searching/meeting-rooms-ii
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███████████████████████████████████████████████████████████████████████████████████