Explain memoization. Given an expensive pure function f from int to int, write a memoized wrapper g that returns f(x) but evaluates f at most once per distinct input.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Given an array of points on a plane (x,y), write a function to return the distance between the closest pair of points.Related courses

Course

