Skip to content

Dynamic Programming

Solve every subproblem once, then let the table do the work.

Start the module

1. What Is Dynamic Programming? · 5 min

0 of 20 lessons · 0% complete

Start module

Dynamic Programming visualizer

Every lesson in this module opens with an animation you can step through. This is the first one — What Is Dynamic Programming?: Solve each overlapping subproblem once, then reuse the answer.

What Is Dynamic Programming?

Step 1 of 10

Merge sort on [5, 2, 9, 1]: split at the midpoint, twice, until every piece is a single value.

Lessons
20
Minutes
117
Problems
27
Concepts
7

Quiz yourself: 3 questions from this module

1 / 3

Which pair of properties makes a problem a DP problem?