You are given a list of meeting room booking requests. Each request is a half-open time interval [start, end), meaning it uses the room starting at start and releases it at end (so a meeting ending at time t does not overlap one starting at time t).
A single meeting room can host at most one request at any time.
intervals
of length
n
, where each element is
[start, end)
with
start < end
.
canScheduleInOneRoom
.
minRooms
(the minimum number of rooms needed).
1 ≤ n ≤ 10^5
start
and
end
are integers (or comparable timestamps) within a reasonable range.
[[0, 30], [5, 10], [15, 20]]
canScheduleInOneRoom = false
,
minRooms = 2