WormholesDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it i...
分类:
其他好文 时间:
2014-07-24 17:27:45
阅读次数:
284
How Many TablesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13040Accepted Submission(s): 6368Pr...
分类:
其他好文 时间:
2014-07-24 17:14:05
阅读次数:
220
my code:#include #include #includeusing namespace std;int find(int num,int A []){while(num!=A[num])//{ num = A[num];return num;}//bool follow(int a...
分类:
其他好文 时间:
2014-07-24 12:16:25
阅读次数:
175
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\...
分类:
编程语言 时间:
2014-07-24 11:35:42
阅读次数:
245
一. redis
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http...
分类:
其他好文 时间:
2014-07-24 10:32:58
阅读次数:
223
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
编程语言 时间:
2014-07-24 10:25:36
阅读次数:
227
(function test(x){ x=10; console.log(arguments[0], x); //undefined, 10})();(function test(x){ x=10; console.log(arguments[0]); // 10})(1)...
分类:
编程语言 时间:
2014-07-24 09:57:13
阅读次数:
196
刚到这个公司,开始进行cocos2d-x的真正项目开发,为了以后能够更好扩展,改动不大,决定使用3.X版本开发,而且使用ui编辑器。在导入的时候,今天遇到一个问题,Buffer is too small,搜了不少,但是都没有解决的方案,最后查到一个错误诱因,是因为ui中使用了label所致,于是我试...
分类:
Web程序 时间:
2014-07-23 16:13:21
阅读次数:
264
d3.max = function(array, f) {var i = -1, n = array.length, a, b;if (arguments.length === 1) {//取数组中第一个非undefined数值while (++i a) a = b;} else {while (....
分类:
其他好文 时间:
2014-07-23 15:40:19
阅读次数:
226
SquareInput:Standard InputOutput:Standard OutputGivennintegers you can generate2n-1non-empty subsets from them. Determine for how many of these subset...
分类:
其他好文 时间:
2014-07-23 15:17:56
阅读次数:
292