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

DSADynamic programming: memoisation

The DP table

The same recursion, run three ways. Which one solves ways(3) fifty-five times, and which solves it once?

One recursion sits under all three tabs, and the only difference is whether its answers get written down, and in what order. The table is that memory: each cell one subproblem, with a count of how many times it has been worked out from scratch. Watch those counts vanish when the answers are kept.

Included with a plan

This lab 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.

the lesson Dynamic Programming, Worked (filling the table)
The whole idea this lab came from, told start to finish.

on the path Module 3 of 11 in DSA: Worked, and deeper
The lessons, boards and videos around this lab, in reading order.

Board: The DP Table