The problem. Given meeting time intervals [start, end], return the minimum number of conference rooms needed so every meeting gets a room. A room freed at time 10 can host a meeting starting at 10.
[[0,30], [5,10], [15,20]] -> 2
[[7,10], [2,4]] -> 1
[[1,10], [2,9], [3,8], [4,7]] -> 4Members only · free account
The rest of this lesson, with 7 more sections, 1 drawing, a dry-run simulator and code in JavaScript, Python, Java and C++, opens with a free account.
Not ready yet? The Arrays course is free to read, no account needed.
In the rest of this lesson