This question evaluates understanding of interval overlap, resource allocation and the ability to implement efficient scheduling algorithms for meeting-room assignment.
You are given a list of meeting time intervals, where each interval is represented as [start, end) (start time inclusive, end time exclusive) and start < end.
Two meetings overlap if one starts before the other ends.
Task: Return the minimum number of conference rooms required so that all meetings can be held without conflicts.
intervals
: an array of
n
intervals, each interval is a pair of integers
[start, end)
.
1 <= n <= 10^5
0 <= start < end <= 10^9
[[0,30],[5,10],[15,20]]
2
(because at time 5–10, two meetings overlap)