166 views
Creating a memoization function
Task condition
Develop a function memoize that takes two arguments: the target function to be memoized, and the duration (time) for which the result of this function will be stored in the cache.
Task condition
Develop a function memoize that takes two arguments: the target function to be memoized, and the duration (time) for which the result of this function will be stored in the cache.