Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Algorithm for cancelling common factors between two lists of multiplicands

by QM (Parson)
on Aug 09, 2005 at 15:19 UTC ( #482242=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub n_choose_k {
      my ($n, $k) = @_;
      # f($n) = $n!
      return f($n)/f($k)/f($n-$k);
    }
    
  2. or download this
    sub n_choose_k {
      my ($n, $k) = @_;
    ...
      }
      return $t;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482242]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2023-06-03 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (14 votes). Check out past polls.

    Notices?