There is a row of
The cost of painting house i with a certain color is represented by an costs. For example, costs[0][0] is the cost of painting house costs[1][2] is the cost of painting house
Return the minimum cost to paint all houses.
Constraints:
costs.length
costs[i].length
costs[i][j]
There is a row of
The cost of painting house i with a certain color is represented by an costs. For example, costs[0][0] is the cost of painting house costs[1][2] is the cost of painting house
Return the minimum cost to paint all houses.
Constraints:
costs.length
costs[i].length
costs[i][j]