There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least on...
分类:
其他好文 时间:
2014-09-04 23:43:20
阅读次数:
184
Mobile is no longer on the sidelines. If you’re not already thinking mobile first, you should at least consider it. Let’s go over compelling data that...
分类:
Web程序 时间:
2014-09-03 10:50:56
阅读次数:
235
https://rubygems.org/今天看到了如下的提示:Warning: You're using Rubygems 1.8.23.2 with Spring. Upgrate to at least Rubygems 2.1.0 and run Rails 4.1.4$gem update...
分类:
其他好文 时间:
2014-09-02 15:43:04
阅读次数:
151
EmailYou don't have any verified emails. We recommend verifying at least one email.Email verification helps our support team help you in case you have...
分类:
其他好文 时间:
2014-09-01 09:17:22
阅读次数:
3069
题外话:才连续写了几篇博客,博客排名竟然就不再是“千里之外”了,已经进入2万名之内了。再接再厉,加油!
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key)...
分类:
其他好文 时间:
2014-08-31 17:17:51
阅读次数:
181
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-08-31 15:49:11
阅读次数:
180
The faux hawk cheap ghd hair straightener can be performed by cutting the top of the hair so there is at least 1.5 inches of hair and the sides can be...
分类:
其他好文 时间:
2014-08-30 16:15:39
阅读次数:
233
题解:求n个数的最小公倍数,一个一个算就可以了,需要注意的是LCM先除GCD再乘,因为先乘有可能会超范围,1WA的代价。#include int T,n,a,b;int gcd(int a,int b){if(b==0)return a;return gcd(b,a%b);}int main(){ ...
分类:
其他好文 时间:
2014-08-30 08:43:49
阅读次数:
185
Dilu have learned a new thingabout integers, which is - any positive integer greater than 1 can be divided byat least one prime number less than or equal to that number. So, he is nowplaying with this...
分类:
其他好文 时间:
2014-08-29 22:45:39
阅读次数:
366
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-08-29 01:18:46
阅读次数:
187