Limited time: AI code review, hints, mock interviews, whiteboard analysis, and all Pro features are unlocked. Enroll

Meeting Rooms

Easy

Topics
ArraySortingIntervals

Given an array of meeting time intervals where intervals[i] = [start, end], return true if a person could attend all meetings (no two overlap).

Example 1

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

Example 2

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

Constraints

  • 0 <= intervals.length <= 10^4
  • intervals[i].length == 2
  • 0 <= start < end
Run ⌘' · Submit ⌘⏎
SensAI SensAI
Beta
Listening...
Tap mic to stop voice mode

Unlock AI Features

One click to activate - no payment, no credit card. Just sign in and you're in.

AI code review and hints
SensAI chat assistant
AI mock interviews
Whiteboard analysis
100% free during early access