I am looking for a c++ or c version of a function that will implement N choose M.
i.e. set A= {a,b,c,d)
N=4
M=2
4 choose 2 from set A I get 6 total combos = N!/M!*(N-M)!
ab
Type: Posts; User: kappajacko
I am looking for a c++ or c version of a function that will implement N choose M.
i.e. set A= {a,b,c,d)
N=4
M=2
4 choose 2 from set A I get 6 total combos = N!/M!*(N-M)!
ab