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