码迷,mamicode.com
首页 >  
搜索关键字:house    ( 818个结果
House Robber
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
ACM学习历程——POJ3321 Apple Tree(搜索,线段树)
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
leetcode 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 st...
分类:其他好文   时间:2015-04-30 18:19:46    阅读次数:122
[LeetCode] 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 that adjacent houses...
分类:其他好文   时间:2015-04-30 12:33:59    阅读次数:152
leetcode - House Robber
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
SQL 仓库管理练习题
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
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 ZOJ(几何计算)
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
Lua查找表元素过程(元表、__index方法是如何工作的)
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
House Robber
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
818条   上一页 1 ... 64 65 66 67 68 ... 82 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!