问一个题 house paint# JobHunting - 待字闺中
w*n
1 楼
就是前面某位拿了一堆Offer的大牛贴的
minimize the cost of painting K houses, each house has different
costs to paint in different colors,
2 houses (next to each other) cannot be painted in the same
color. DP 问题
请教怎么DP?
谢谢先!!
minimize the cost of painting K houses, each house has different
costs to paint in different colors,
2 houses (next to each other) cannot be painted in the same
color. DP 问题
请教怎么DP?
谢谢先!!