Step 1 of 147%

What Is Dynamic Programming?

Dynamic programming (DP) is a technique for solving problems by breaking them into smaller overlapping subproblems and storing each subproblem's answer so it is never recomputed. It turns slow, repetitive recursion into fast, efficient solutions.

Hints

Check Your Understanding

What is the central idea behind dynamic programming?