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

Minimum Number of Arrows to Burst Balloons

MediumLeetCode 452 ↗

The problem, in one line. Each balloon covers a stretch along a line, and one arrow shot straight up at a position pops every balloon whose stretch contains it, so return the fewest arrows that pop them all. LeetCode 452.

The tell. You want the fewest points that touch every interval. That is a clustering question: group intervals that share a point, and pay one arrow per group. It sorts by end, like scheduling, because the right place to shoot is a right edge.

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.