Fewest meeting rooms
Each meeting is a pair [start, end] with start < end. Given a list of meetings, return the fewest rooms needed so that no two meetings overlap in the same room. A meeting that ends at time t frees its room for one that starts at t.
The list is not sorted and may be empty.
Besides the tests, one large input (5,500 meetings) with a ~450 ms limit (scaled to your device's speed): brute force won't pass.
Examples
min_rooms([[0,30],[5,10],[15,20]])→2min_rooms([[7,10],[2,4]])→1min_rooms([[1,5],[5,8]])→1