We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4666f01 commit 8ccbd6dCopy full SHA for 8ccbd6d
Python/combinations.py
@@ -20,7 +20,7 @@ def combine(self, n, k):
20
break
21
idxs[i] += 1
22
for j in xrange(i+1, k):
23
- idxs[j] = idxs[j-1] + 1
+ idxs[j] = idxs[j-1]+1
24
result.append([nums[i] for i in idxs])
25
return result
26
0 commit comments