Concept Flow - Meeting Rooms Problem Minimum Rooms Required
Sort intervals by start time
Initialize min-heap for end times
For each interval
Check if earliest end time <= current start
Pop from heap
Push current end time into heap
Repeat for all intervals
Heap size = minimum rooms needed
Sort intervals by start time, then use a min-heap to track end times of ongoing meetings. For each meeting, if a room is free (earliest end time <= current start), reuse it; else add a new room. The heap size at the end is the minimum rooms required.
