Glossary: Coding Interviews in JavaScript
Memo
Also written: memoization, memoize
A `Map` from each subproblem to its answer. Top-down DP checks it first and stores every answer before returning, so each subproblem is solved once.
Glossary: Coding Interviews in JavaScript
Also written: memoization, memoize
A `Map` from each subproblem to its answer. Top-down DP checks it first and stores every answer before returning, so each subproblem is solved once.