Index

Module 03 · DSAWorked, and deeper

Dynamic Programming, Worked (filling the table)

The DP Table
The DP Table · Open board

The companion to Recursion & Dynamic Programming: that lesson gave the idea in words, this one fills two real grids by hand until the answer sits in a corner for you.

Before you start. You need Recursion & Dynamic Programming‘s idea already: solve a small version of a question once, write the answer down, and build the bigger answer from answers already sitting there. That lesson gave you the words; this one runs it by hand, on two problems you’ll meet in an interview.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

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

Stay on Ask again every time, press Show next step twenty times, and watch calls made in The bill so far.

Open The DP table →

Review DSA →

Saved in this browser, and to your account when you sign in.