Skip to content

Commit

Permalink
Update combinations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Feb 27, 2018
1 parent 9c4b724 commit 5506ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/combinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def combine(self, n, k):
if len(combination) == k or \
len(combination)+(n-i+1) < k:
if not combination:
return result
break
i = combination.pop()+1
else:
combination.append(i)
Expand Down

0 comments on commit 5506ac9

Please sign in to comment.