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.
Preparing for interviews? The ten-week plan puts this in order with DSA and the design rounds.
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.