cheetcode

133. Meeting RoomsEasy

Determine whether all meetings can be attended without time conflicts.

Given an array of meeting time intervals where intervals[i] = [start, end], determine if a person could attend all meetings.

Examples

Input: intervals = [[0,30],[5,10],[15,20]]
Output: false
Input: intervals = [[7,10],[2,4]]
Output: true

Constraints

  • 0 <= intervals.length <= 10,000
  • intervals[i].length == 2
  • 0 <= start < end <= 1,000,000