Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: