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

House Robber

MediumLeetCode 198 ↗

The problem, in one line. Houses in a row hold some cash each, taking from two neighbouring houses sets off an alarm, so pick houses that are never next to each other to get the most. LeetCode 198.

The tell. A choice at every item with a rule that links it to its neighbour. When each item is “take it or leave it” and taking blocks the next one, the best total up to here depends only on the last two decisions.

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.