There is a row of costs, where costs[i][j] represents the cost of painting house i with color j.
All houses must be painted such that no two adjacent houses have the same color.
Return the minimum total cost required to paint all houses.
Constraints:
costs.length
costs[i].length
costs[i][j]
There is a row of costs, where costs[i][j] represents the cost of painting house i with color j.
All houses must be painted such that no two adjacent houses have the same color.
Return the minimum total cost required to paint all houses.
Constraints:
costs.length
costs[i].length
costs[i][j]