Index

Module 03 · DSAWorked, and deeper

DP, five more shapes

The DP Table
The DP Table · Open board

Shows two grids filled by hand, each cell built from cells already filled, the answer waiting in a corner. This lesson keeps that rule and changes what a single cell means.

Before you start. Recursion & Dynamic Programming gave you the trick: answer each small copy of a question once, write it in a notebook, and build bigger answers from notebook entries instead of solving them again. That notebook can be one row (the ways to reach step n are the ways to reach n-1 plus the ways to reach n-2), and Dynamic Programming, Worked (filling the table) filled it as two grids, knapsack and LCS, where a subsequence means items kept in their order with gaps allowed.

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.