Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
def
combination(n, r):
26
return
permutation(n, r) / factorial(r)
27
28
29
def
main():
Callers
1
main
Function · 0.85
Calls
2
permutation
Function · 0.85
factorial
Function · 0.70
Tested by
no test coverage detected