Given an array of meeting time intervals, determine whether a single person can attend every meeting — that is, whether any two intervals overlap.
intervals = [[0,30],[5,10],[15,20]]falseintervals = [[7,10],[2,4]]trueSolve it in the editor. Sign in free to run your Python or JavaScript against test cases, get a verdict, and track your attempts.
Solve on FeatCode →Problems about ranges — meeting times, event schedules, ranges on a number line — almost always start with sorting the intervals by start (or end) time, then sweeping through them once.
Read the full Intervals guide →
Original problem on LeetCode ↗