Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings.
Examples
Example 1
Input: intervals = [[0,30],[5,10],[15,20]]
Output: false
The meetings [0,30] and [5,10] overlap, and [0,30] and [15,20] also overlap.
Example 2
Input: intervals = [[7,10],[2,4]]
Output: true
The meetings do not overlap.
Constraints
0 <= intervals.length <= 10^4intervals[i].length == 20 <= starti < endi <= 10^6