Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 92e1a97

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /