Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Overlapping subproblems

When the same smaller question is asked again and again, as `ways(28)` is inside both `ways(30)` and `ways(29)`. It is the main sign that DP will help.

Where the book teaches it

Related terms

MemoizationDynamic programmingOptimal substructure