I didn’t find it, yet. Did I miss something?
I know a factorial method is a common example program for beginners. But wouldn’t it be useful to have a standard implementation for this one to reuse?
I could use such a method with standard types (Eg. int, long…) and with BigInteger / BigDecimal, too.
I didn’t find it, yet. Did I miss something? I know a factorial method
Share
I don’t think it would be useful to have a library function for factorial. There is a good deal of research into efficient factorial implementations. Here is a handful of implementations.