Skip to content

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.

Where the book teaches it

Related terms

Top-downDynamic programming (DP)