Skip to content

Glossary: Coding Interviews in C++

Overlapping subproblems

The same smaller question coming up again and again, such as the fewest bags for 28 lb being reached by several routes. This is when dynamic programming pays off.

Where the book teaches it

Related terms

SubproblemDynamic programming (DP)Memo