Skip to content

Commit 8ccbd6d

Browse files
authored
Update combinations.py
1 parent 4666f01 commit 8ccbd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/combinations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def combine(self, n, k):
2020
break
2121
idxs[i] += 1
2222
for j in xrange(i+1, k):
23-
idxs[j] = idxs[j-1] + 1
23+
idxs[j] = idxs[j-1]+1
2424
result.append([nums[i] for i in idxs])
2525
return result
2626

0 commit comments

Comments
 (0)