One Meeting Room — Solution & Editorial
Sort by start and check every adjacent pair: the next start must be ≥ the previous end.
Complexity: O(N log N)
Sort by start and check every adjacent pair: the next start must be ≥ the previous end.
Complexity: O(N log N)