Talk:Special factorials: Difference between revisions
m
→Reverse factorial algorithm: add comment
(→Reverse factorial algorithm: 0 and 1) |
m (→Reverse factorial algorithm: add comment) |
||
Line 3:
<lang java>public static int rf(int n) {
if (n == 1)
return 0; //1 has two answers -- return the lower one
int a = 1;
|