medium
Meeting Rooms II
Given a list of meeting time intervals [start, end), find the minimum number of conference rooms needed so that no two overlapping meetings share a room.
Constraints
- 1 ≤ intervals.length ≤ 10^4
- 0 ≤ start < end ≤ 10^6
Examples
in: intervals = [[0,30],[5,10],[15,20]]
out: 2
in: intervals = [[7,10],[2,4]]
out: 1
Code it yourself
Solve in
Test execution is not yet available for this exercise.Practice journal →Draft saved in this browser.
Hints:
Which approach applies?
Choose an approach to check your pattern recognition, or reveal the discussion when you need help.