Skip to content

Glossary: Coding Interviews in Rust

Memo

Also written: memoization, memoize

A `HashMap` that saves each subproblem's answer so it is solved only once. Top-down DP checks it first and stores every answer before returning.

Where the book teaches it

Related terms

Top-downDynamic programming (DP)