javascript · INTERMEDIATE · Public challenge

Meeting Conflict Check

Challenge

Each meeting has a start and an end time. Two meetings conflict when they overlap for more than a single instant: a meeting that ends at 5 does not conflict with one that starts at 5.

Example
Input: 3 / 0 30 / 5 10 / 15 20
Output: YES

Input: Line 1: n. Then n lines with start and end.
Output: YES or NO.
Constraints: 1 <= n <= 100000, start < end

  • Sorting
  • JavaScript

Browse all challenges