MCPcopy Create free account
hub / github.com/geekcomputers/Python / combination

Function combination

factorial_perm_comp.py:25–26  ·  view source on GitHub ↗
(n, r)

Source from the content-addressed store, hash-verified

23
24
25def combination(n, r):
26 return permutation(n, r) / factorial(r)
27
28
29def main():

Callers 1

mainFunction · 0.85

Calls 2

permutationFunction · 0.85
factorialFunction · 0.70

Tested by

no test coverage detected