Easy · Intervals
Schedule Meetings
Given an array intervals of meetings {start, end} (start < end) in any order, return true if one person can attend all of them, meaning no two meetings overlap (a meeting may start exactly when another ends), and false otherwise.
Examples
Example 1
[0,30] [5,10] [15,20] → falseOutput: conflict
Example 2
[7,10] [2,4] → trueOutput: can attend all
Rebuild it in the studio
Core interview problems are free with a full runner and lessons; Pro opens the complete library.