Skip to content

Commit 92e1a97

Browse files
authored
1 parent 361e8b5 commit 92e1a97

File tree

1 file changed

+1
-0
lines changed
  • 4-non-linear-data-structures/ch12

1 file changed

+1
-0
lines changed

4-non-linear-data-structures/ch12/35-1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def combine(self, n: int, k: int) -> List[List[int]]:
88
def dfs(elements, start: int, k: int):
99
if k == 0:
1010
results.append(elements[:])
11+
return
1112

1213
# 자신 이전의 모든 값을 고정하여 재귀 호출
1314
for i in range(start, n + 1):

0 commit comments

Comments
 (0)