Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ permutation
Function
permutation
factorial_perm_comp.py:21–22 ·
view source on GitHub ↗
(n, r)
Source
from the content-addressed store, hash-verified
19
20
21
def
permutation(n, r):
22
return
factorial(n) / factorial(n - r)
23
24
25
def
combination(n, r):
Callers
2
combination
Function · 0.85
main
Function · 0.85
Calls
1
factorial
Function · 0.70
Tested by
no test coverage detected