Question
Given an array of meeting time intervals
where intervals[i] = [starti, endi]
, determine if a person could attend all meetings.
https://leetcode.com/problems/meeting-rooms/
- Solution1
1 | class Solution { |
Complexity:
Time complexity: O( nlogn)
Space complexity: O(1)