Skip to content

Commit

Permalink
Update paint-house-ii.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Aug 20, 2015
1 parent 8849766 commit 89eccb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/paint-house-ii.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def minCostII(self, costs):
def combine(self, tmp, house):
smallest, k, i = min(tmp), len(tmp), tmp.index(min(tmp))
tmp, tmp[i] = [smallest] * k, min(tmp[:i] + tmp[i+1:])
return map(sum, zip(house, tmp))
return map(sum, zip(tmp, house))


class Solution2(object):
Expand Down

0 comments on commit 89eccb2

Please sign in to comment.