From 89eccb206b034f3d30f7b04621bdbbe9ad76302b Mon Sep 17 00:00:00 2001 From: kamyu Date: Thu, 20 Aug 2015 23:56:41 +0800 Subject: [PATCH] Update paint-house-ii.py --- Python/paint-house-ii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/paint-house-ii.py b/Python/paint-house-ii.py index 1fd5f873d..724de0c42 100644 --- a/Python/paint-house-ii.py +++ b/Python/paint-house-ii.py @@ -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):