public class Solution { public int rob(int[] nums) { int result=0; int rob=0; int unrob=0; for(int i=0;ib?a:b; }}
分类:
其他好文 时间:
2015-04-30 23:08:50
阅读次数:
131
DescriptionThere is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has ...
分类:
移动开发 时间:
2015-04-30 21:36:07
阅读次数:
243
今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint st...
分类:
其他好文 时间:
2015-04-30 18:19:46
阅读次数:
122
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 that adjacent houses...
分类:
其他好文 时间:
2015-04-30 12:33:59
阅读次数:
152
leetcode -house-robberhttps://leetcode.com/problems/house-robber/Q:You are a professional robber planning to rob houses along a street. Each house has...
分类:
其他好文 时间:
2015-04-29 23:19:17
阅读次数:
148
create table house (house_id varchar(10),city varchar(10),area int)insert into house values ('wh1','北京',370);insert into house values ('wh2','上海',500....
分类:
数据库 时间:
2015-04-29 13:05:46
阅读次数:
208
POJ2135 Farm Tour 最大流 最小费用流
When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of which contains his house and the Nth of which contains the big barn. A total M (1 <...
分类:
其他好文 时间:
2015-04-29 11:54:17
阅读次数:
151
I Think I Need a Houseboat
Time Limit: 2 Seconds Memory Limit: 65536 KB
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land...
分类:
其他好文 时间:
2015-04-28 14:05:09
阅读次数:
184
father = { house=1}son = { car=1}setmetatable(son, father) --把son的metatable设置为fatherprint(son.house)输出的结果是nil,但如果把代码改为father = { house=1}fath...
分类:
其他好文 时间:
2015-04-27 12:48:41
阅读次数:
105
https://leetcode.com/problems/house-robber/You are a professional robber planning to rob houses along a street. Each house has a certain amount of mon...
分类:
其他好文 时间:
2015-04-27 00:02:21
阅读次数:
217