码迷,mamicode.com
首页 >  
搜索关键字:house robber    ( 848个结果
337. House Robber III
...
分类:其他好文   时间:2016-07-11 07:52:39    阅读次数:157
Paint House
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. Yo ...
分类:其他好文   时间:2016-07-09 07:04:03    阅读次数:191
CodeForces 686B Little Robber Girl's Zoo (构造冒泡排序)
题意:给定一排列,让你通过一个区间交换的方式,完成排序。 析:这个题说了,最多不能超过20000次,而 n 最大才100,那么冒泡排序复杂度为 n * n,才10000,肯定是可以的,所以我们就模拟冒泡排序。 代码如下: ...
分类:编程语言   时间:2016-07-06 01:42:46    阅读次数:200
L4,an exciting trip
expressions: a great number of 许多 in the centre of 在…的中部 sentences: I have just had breakfast. I have never been to S. He has just left the house. He ...
分类:其他好文   时间:2016-07-05 11:59:36    阅读次数:105
Technical Committee Weekly Meeting 2016.06.21
Meeting time: 2016.June.21 1:00~2:00 Chairperson: Thierry Carrez Meeting summary: 1.Add current house rules for reference This lists exceptions to the ...
分类:其他好文   时间:2016-07-01 13:36:55    阅读次数:239
337. House Robber III
和前两题已经关系不大了……是树的dfs,加上一个表track back ...
分类:其他好文   时间:2016-06-29 13:22:23    阅读次数:167
213. House Robber II
区别就是用了两个数组,一个强行从第一个开始,一个强行从第二个开始 ...
分类:其他好文   时间:2016-06-29 07:47:48    阅读次数:128
198. House Robber
到某个位置的房子为止最大的收益,是“上个房子最大收益”和“上上个房子收益+本房子的收益”中比较大的那个 因为需要用到上上个房子的值,所以至少要有三个房子,所以一个房子的时候要单独处理 ...
分类:其他好文   时间:2016-06-29 06:41:53    阅读次数:160
256.Paint House
...
分类:其他好文   时间:2016-06-27 07:55:04    阅读次数:302
LeetCode 213. House Robber II
Problem: https://leetcode.com/problems/house-robber-ii/ After robbing those houses on that street, the thief has found himself a new place for his thi ...
分类:其他好文   时间:2016-06-25 21:36:54    阅读次数:150
848条   上一页 1 ... 37 38 39 40 41 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!