Skip to content

Definition

Memoization is an optimization technique that caches the return value of a function for a given set of arguments, so subsequent calls with the same inputs return the cached result instantly instead of recomputing.