Sponsored
Reserved space — layout preview until AdSense is connected
Functions & Closures
medium
Memoize decorator
Implement a @memoize decorator that caches results of a function.
decorators
closures
caching
1
Data Structures & Algorithms
hard
LRU cache decorator
Implement @lru_cache(maxsize=N) for unary functions using OrderedDict.
decorators
caching
OrderedDict
1
Advanced Python
medium
Retry decorator
Implement @retry(times=3) that retries a function on exception.
decorators
error-handling
Showing 3 challenges