Merge in Unstable updates

This commit is contained in:
aerinon
2022-03-08 08:58:29 -07:00
7 changed files with 234 additions and 91 deletions

View File

@@ -131,7 +131,7 @@ def kth_combination(k, l, r):
def ncr(n, r):
if r == 0:
if r == 0 or r >= n:
return 1
return factorial(n) // factorial(r) // factorial(n-r)