192. Meeting Rooms

EasyIntervals

Given an array of meeting time intervals where intervals[i] = [start_i, end_i], determine if a person could attend all meetings. Return true if a person can attend all meetings without any overlap, and false otherwise.

Examples

Input: [[0,30],[5,10],[15,20]]

Output: false

Explanation: [0,30] overlaps both [5,10] and [15,20], so not all meetings can be attended.

Constraints

  • 0 <= intervals.length <= 10^4
  • intervals[i].length == 2
  • 0 <= start_i < end_i <= 10^6
Loading...

Run checks all cases above. Submit evaluates all test cases.