We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a4a3f commit c4287eeCopy full SHA for c4287ee
1 file changed
Python/combinations.py
@@ -26,6 +26,7 @@ def combine(self, n, k):
26
def combineRecu(self, n, result, start, intermediate, k):
27
if k == 0:
28
result.append(intermediate[:])
29
+ return
30
for i in xrange(start, n):
31
intermediate.append(i + 1)
32
self.combineRecu(n, result, i + 1, intermediate, k - 1)
0 commit comments