Skip to content

Glossary: Coding Interviews in C++

Memo

Also written: memoization, memoize

A hash map (or vector) that saves each subproblem's answer so it is never solved twice. It turns slow recursion into top-down dynamic programming.

Where the book teaches it

Related terms

Top-downDynamic programming (DP)