Glossary: Coding Interviews in JavaScript
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 the sign that dynamic programming will help.
Glossary: Coding Interviews in JavaScript
The same smaller question coming up again and again, such as the fewest bags for 28 lb being reached by several routes. This is the sign that dynamic programming will help.