3 ms·Note that we can use the @functools.lru_cache(None) to easily benefit from memoization.by alexis-d 15y agoNote that we can use the @functools.lru_cache(None) to easily benefit from memoization.