Skip to content

Commit d2d8073

Browse files
authored
Update paint-house-iii.py
1 parent 7369cff commit d2d8073

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Python/paint-house-iii.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ def minCost(self, houses, cost, m, n, target):
3131
# Space: O(t * n)
3232
class Solution2(object):
3333
def minCost(self, houses, cost, m, n, target):
34+
"""
35+
:type houses: List[int]
36+
:type cost: List[List[int]]
37+
:type m: int
38+
:type n: int
39+
:type target: int
40+
:rtype: int
41+
"""
3442
dp = {(0, 0): 0}
3543
for i, p in enumerate(houses):
3644
new_dp = {}

0 commit comments

Comments
 (0)