随笔分类 -  dp 5

256. Paint House
摘要:There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain color is different. You have to paint all the h... 阅读全文

posted @ 2018-11-09 10:44 猪猪🐷

213. House Robber II
摘要:https://www.youtube.com/watch?v=-i2BFAU25Zk You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arrang... 阅读全文

posted @ 2018-11-06 07:51 猪猪🐷

276. Paint Fence
摘要:https://www.youtube.com/watch?v=deh7UpSRaEY 阅读全文

posted @ 2018-11-06 07:50 猪猪🐷

265. Paint House II
摘要:There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. You have to paint all the houses such that no two a... 阅读全文

posted @ 2018-11-06 07:48 猪猪🐷

198. House Robber
摘要:198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is... 阅读全文

posted @ 2018-09-20 18:09 猪猪🐷

导航