Insert Interval

Intervals · Before, merge, after · Stretch · about 24 min

Why it matters

Interval questions become much simpler when separated into three calm phases.

How it connects

You detected one overlap. Now use interval order to merge every overlap around a new range.

Try first

Split existing intervals into those fully before, overlapping, and fully after the new one.

Interview cue

Sorted intervals let me scan once through before, overlap, and after regions.