Skip to content

Commit 52c9e4b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc5751d commit 52c9e4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

maths/combinations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
22
https://en.wikipedia.org/wiki/Combination
33
"""
4+
5+
46
def combinations(n: int, k: int) -> int:
57
"""
68
Returns the number of different combinations of k length which can
@@ -38,6 +40,7 @@ def combinations(n: int, k: int) -> int:
3840
res = res // (i + 1)
3941
return res
4042

43+
4144
if __name__ == "__main__":
4245
print(
4346
"The number of five-card hands possible from a standard",

0 commit comments

Comments
 (0)