Approach 1:
C(n,r) = n!/(n-r)!r!
Approach 2:
I discovered this in Wilf's book Combinatorial Algorithms: C(n,r) may be represented as C(n-1,r) + C (n-1,r-1).
e.g.
C(7,4) = C(6,4) + ...READ MORE
Jul 25, 2022
in C++
by
Nicholas
• 7,760 points
•
1,124 views