AlgoViz

Dynamic programming: core concepts

medium 18 min

Dynamic programming solves a problem by breaking it into smaller subproblems, solving each distinct subproblem once and storing the answer.

Check yourself

One question at a time. Each answer explains why.

Question 1 of 10

Score 0
conceptual

What are the two main properties that make a problem suitable for dynamic programming?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 10

Recall

What two properties must a problem have for dynamic programming to help?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.