Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Insert Interval

MediumLeetCode 57 ↗

The problem, in one line. Given a sorted list of separate intervals and one new interval, return the list with the new one added, merging anything it touches. LeetCode 57.

The tell. The list is already sorted and already free of overlaps, so the new interval can only affect a single stretch in the middle. Everything before that stretch and everything after it is untouched.

Included with a plan

This solution is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.