mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
psf/black code formatting (#1277)
This commit is contained in:
committed by
Christian Clauss
parent
07f04a2e55
commit
9eac17a408
@@ -12,7 +12,7 @@ def generate_all_combinations(n: int, k: int) -> [[int]]:
|
||||
>>> generate_all_combinations(n=4, k=2)
|
||||
[[1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4]]
|
||||
"""
|
||||
|
||||
|
||||
result = []
|
||||
create_all_state(1, n, k, [], result)
|
||||
return result
|
||||
@@ -34,7 +34,7 @@ def print_all_state(total_list):
|
||||
print(*i)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
n = 4
|
||||
k = 2
|
||||
total_list = generate_all_combinations(n, k)
|
||||
|
||||
Reference in New Issue
Block a user