Meeting Rooms II
Given an array of meeting time intervals where intervals[i] = [start, end], return the minimum number of conference rooms required so that no two overlapping meetings share a room.
Drag the time line above to see how many meetings run at once. The busiest moment is the number of rooms you need.
intervals = [[0,30],[5,10],[15,20]]
2
intervals = [[7,10],[2,4]]
1
intervals = [[0,30],[5,10],[15,20],[5,15]]
3
- 1 <= intervals.length <= 10^4
- 0 <= starti < endi <= 10^6