Y
Hacker News
new
|
ask
|
show
|
jobs
by
xapata
1306 days ago
In those cases, you may wish to use a dynamic programming technique. A bit of caching might be a greater optimization than tail call elimination. The `@functools.lru_cache` tool is very easy to experiment with.