Skip to content
Optimization line

1-D Dynamic Programming problems

Problems where the answer at a position depends on answers just before it. Store each answer once in a list, and a search that would take exponential time takes one pass.

The 12 problems

In the order the app teaches them. Each page has the problem, five hints and the explained solution.

On the roadmap

1-D Dynamic Programming is a station on the optimization line. It builds on Backtracking. Next comes 2-D Dynamic Programming.

The roadmap says why each line runs in its order.

Patterns

3 patterns solve these problems. Naming them gives the problems’ methods away, so the list is folded.

Show the 3

Keep going