in reply to Re: Binomial Golf
in thread Binomial Golf
# copy of said subroutine sub nCr { my ($n, $r) = @_; my $res = 1; for my $i (1..$r) { $res *= $n--; $res /= $i; } $res; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Binomial Golf
by gumpu (Friar) on May 30, 2001 at 15:50 UTC |