Update 4 - Be Choosy.py
This commit is contained in:
parent
665b8f3835
commit
bea99e5e1e
@ -1,7 +1,7 @@
|
|||||||
def choose(n, k):
|
def choose(n, k):
|
||||||
res = n/k
|
res = n/k
|
||||||
while k > 1:
|
while k > 1:
|
||||||
n-= 1
|
n -= 1
|
||||||
k -= 1
|
k -= 1
|
||||||
res *= n/k
|
res *= n/k
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user