Guided lesson

Merge Intervals

Greedy

See the input

Beginner

Input for Merge Intervals: Sort intervals by start and combine overlapping neighbors.

8-30
35-58
63-88
Step 1 O(n log n) time - O(n) space
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart