Attend every meeting
Each meeting is a pair [start, end] with start < end. Return True if one person can attend every meeting, that is, if no two of them overlap. A meeting that ends at time t does not clash with one that starts at t.
The list is not sorted and may be empty. Aim for O(n log n), not a check of every pair.
Besides the tests, one large input (4,000 meetings) with a ~150 ms limit (scaled to your device's speed): brute force won't pass.
Examples
can_attend_all([[0,30],[5,10],[15,20]])→falsecan_attend_all([[7,10],[2,4]])→truecan_attend_all([[1,5],[5,8]])→true