Skip to content

Commit 78464d7

Browse files
authored
Update combination_sum.py
1 parent 0369836 commit 78464d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

combination_sum.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param candidates, a list of integers
@@ -30,4 +30,6 @@ def _combinationSum(self, candidates, comb, i, _sum):
3030
comb.append(candidates[j])
3131
self._combinationSum(candidates, comb, j, _sum + prev)
3232
comb.pop()
33-
j += 1
33+
j += 1
34+
35+
# medium: http://lintcode.com/zh-cn/problem/combination-sum/

0 commit comments

Comments
 (0)