The vocabulary of the job, one term at a time — what it means, and when you would say it.
Performance · beginner
Caching a function's result against its arguments so a repeated call skips the work.
Meaning
Caching a function's result against its arguments so a repeated call skips the work.
Memoization is only sound for a pure function: given the same arguments it must return the same value and change nothing else. The cost is memory and staleness, so a memo table normally needs a bound — a size limit, a time-to-live, or a lifetime tied to a request. It is a cache with a narrow contract, not a general one.
Recursive Fibonacci drops from exponential to linear once each `fib(n)` is stored the first time it is computed.
No published skills are linked yet.
Work through the glossary one card at a time, in a different order every run.
Open the discover feed