252. Meeting Rooms
Practice Meeting Rooms for free on NudgeCode: Easy, Greedy pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
Each [start, end] in intervals is a meeting. Return true if one person could attend all of them, meaning no two meetings overlap. A meeting ending at time t and another starting at t do not overlap.
Example
intervals = [[0,30],[5,10],[15,20]] -> false
intervals = [[7,10],[2,4]] -> true
Constraints
- 0 <= intervals.length <= 10^4
- 0 <= start < end <= 10^6