AMAZING AUCTION(这道麽。。。。英文题,,硬伤, 也是队友写的;题意是 从数据中找到与众不同的数据, 且该价钱是最低的(也就是竞标) 代码应该不难);题目描述Recently the auction house has introduced a new type of auction,...
分类:
其他好文 时间:
2015-05-04 19:29:55
阅读次数:
110
抢劫一排沿街的房子,每一家有不同的财富值,一夜之内抢了连续两家就会拉响报警。给出每家的财富值,求最多能抢到多少?【思路】动态规划求最优解。解题关键:递推式——maxV[i]=max{maxV[i-2]+nums[i], maxV[i-1]};【other code】int rob(vector& n...
分类:
其他好文 时间:
2015-05-04 10:00:19
阅读次数:
98
Apple Tree
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 20671
Accepted: 6257
Description
There is an apple tree outside of kaka's house. Every autumn,...
分类:
移动开发 时间:
2015-05-03 10:39:40
阅读次数:
164
iOS 证书分两种类型.第一种为$99美元的,这种账号有个人和公司的区别,公司账号能创建多个子账号,但个人的不能。这种账号可以用来上传app store第二种为¥299美元的,这种账号只能用于企业内部使用,不能用来上传app store .也就是常说的in-house证书(用这种证书打出来的包能在任...
分类:
移动开发 时间:
2015-05-01 10:40:28
阅读次数:
151
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