Skip to content

Commit b901cc0

Browse files
add
1 parent ec1951d commit b901cc0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

backtracking/all_combinations.py

-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def combination_lists(n: int, k: int) -> list[list[int]]:
1616
1717
>>> combination_lists(n=4, k=2)
1818
[[1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4]]
19-
>>> combination_lists(n=5, k=3)
20-
[[1, 2, 3], [1, 2, 4], [1, 2, 5],
21-
[1, 3, 4], [1, 3, 5], [1, 4, 5],
22-
[2, 3, 4], [2, 3, 5], [2, 4, 5],
23-
[3, 4, 5]]
2419
"""
2520
return [list(x) for x in combinations(range(1, n + 1), k)]
2621

0 commit comments

Comments
 (0)