Build the PrimitiveMedium
Meeting Rooms II
Write `min_meeting_rooms(intervals)` returning the fewest rooms needed so no two overlapping meetings share one. A meeting ending exactly when another starts can reuse the room.
[[0,30],[5,10],[15,20]] -> 2
You are not scheduling rooms, you are finding peak concurrency. Two standard answers: a min-heap of end times, or sorting starts and ends separately and sweeping with a running counter. Process an end before a start at the same timestamp, or you will over-count by one.
What to expect: A timer starts when you begin. Edit the starter code, run it against the test suite as many times as you like, then finish when you're done. The reference solution and interviewer follow-up questions unlock only after you finish.