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

True that memoization makes factorial trivial, but I think that's erring on the side of skipping the computation we're meant to be benchmarking; a pre-computed array may be even faster. Numba's JIT is applicable in a wide range of scenarios, and could be used alongside memoization if needed.


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

Search: