1. 在本地apache下 php版本5.3.13 调用类的方法 :$res['data']=\helper::sort_two_array($res['data'],'SORT_DESC','time');//sort_two_array()方法是非静态的 是可以调用的2.但是 在nginx下.....
分类:
其他好文 时间:
2014-08-19 16:18:54
阅读次数:
164
题目链接:Median做了整整一天T_T尝试了各种方法:首先看了解答,可以用multiset,但是发现java不支持;然后想起来用堆,这个基本思想其实很巧妙的,就是维护一个最大堆和最小堆,最大堆存放前半部分较小的元素,最小堆存放后半部分较大的元素,并且最大堆的所有元素小于最小堆的所有元素;保持最大堆...
分类:
其他好文 时间:
2014-08-18 23:21:23
阅读次数:
537
F - 最大子矩形Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a two-dimensional array of positive and nega...
分类:
其他好文 时间:
2014-08-18 21:58:12
阅读次数:
312
Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operati...
分类:
其他好文 时间:
2014-08-18 20:35:02
阅读次数:
206
求两个已排过序的等长的数组的中位数(median of two sorted arrays)...
分类:
其他好文 时间:
2014-08-18 18:46:33
阅读次数:
337
Problem DescriptionGiven three strings, you are to determine whether the third string can be formed by combining the characters in the first two strin...
分类:
其他好文 时间:
2014-08-18 17:46:52
阅读次数:
244
①原题 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). ②乡村英语翻译一下 给你两个...
分类:
其他好文 时间:
2014-08-18 16:40:32
阅读次数:
155
Problem Description
Teacher Mai finds that many problems about arithmetic function can be reduced to the following problem:
Maintain an array a with index from 1 to l. There are two kinds of ope...
分类:
其他好文 时间:
2014-08-18 16:26:42
阅读次数:
248
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)...
分类:
其他好文 时间:
2014-08-18 16:21:57
阅读次数:
148
Berserk RookAs you may know,chessis an ancient game for which almost everyone has at least a basic understanding of the rules. Chess is a two-player s...
分类:
其他好文 时间:
2014-08-18 15:45:02
阅读次数:
179