Home
Log in
DescriptionSubmissionsSolution
DescriptionSubmissionsSolution
Loading...

Log in to run or submit

intervals =

Codey

Practise coding problems, test your solutions and track your progress.

Explore

  • Problems
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

© 2026 Codey. Personal learning project.

Meeting Rooms

Easy

Given an array intervals where intervals[i] = [start_i, end_i] represents a meeting time, return true if a person could attend all meetings (no overlaps), otherwise return false.

Meetings are half-open intervals [start, end) where start < end.

Example 1:

Input: intervals = [[0,30],[5,10],[15,20]]
Output: false

Example 2:

Input: intervals = [[7,10],[2,4]]
Output: true

Constraints:

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

Meeting Rooms

Easy

Given an array intervals where intervals[i] = [start_i, end_i] represents a meeting time, return true if a person could attend all meetings (no overlaps), otherwise return false.

Meetings are half-open intervals [start, end) where start < end.

Example 1:

Input: intervals = [[0,30],[5,10],[15,20]]
Output: false

Example 2:

Input: intervals = [[7,10],[2,4]]
Output: true

Constraints:

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