Re:Calculating integer factorials in constant time, taking a...
by ape4 on Tuesday December 15, 2015 @12:40PM
(#10739100)
I like the idea of hybrid. Since the value of a factorial depends on the factorial of the previous 2 numbers. Cache fact(n) and fact(n-1) for a selection of n's. eg n = 10, 100, 1000, 10000, ...
[ Parent
| on HN ]
There are no comments on this comment yet.