All challenges

JavaScript challenge · Frontend

Memoize

Difficulty

medium

Time

~20m

Format

Single

Grading

Auto-graded

#frontend#javascript#typescript#functions#caching
Mission file // read carefullymedium

Implement memoize(fn) returning a function that caches results by its arguments, so repeated calls with the same arguments don't re-run fn. (Assume JSON-serializable arguments.)

Build with

TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge

Sign in to save your progress.