题目链接Problem discriptionGiven two sorted integer
arrays A and B, merge B into A as one sorted array.Note:You may assume that A
has enough space (size t...
分类:
其他好文 时间:
2014-06-16 11:12:36
阅读次数:
192
程序使用java做后台服务,数据处理时使用了java的hashcode,Delphi程序也需要生成这个hashcode,为了一致,所以要在Delphi下实现和Java一样的算法。下面即Delphi版的hashCode:function
hashCode(val: string): Integer;v...
分类:
编程语言 时间:
2014-06-16 09:30:51
阅读次数:
303
转自:http://blog.csdn.net/mailreboot/article/details/1946866 1 //结束进程 2 function
KillTask(ExeFileName: string): Integer; 3 const 4 PROCESS_TERMINATE = ....
分类:
其他好文 时间:
2014-06-16 07:11:11
阅读次数:
270
class Solution {private: const static char*
pattern[]; const static char* roman_digit[];public: string intToRoman(int num) {
if (num ...
分类:
其他好文 时间:
2014-06-16 07:04:22
阅读次数:
171
Given an unsorted integer array, find the first
missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1]
return 2.Your algorithm s...
分类:
其他好文 时间:
2014-06-13 20:25:38
阅读次数:
241
${"%u"+java.lang.Integer.toHexString(region.toString().charAt(s.toInt()))}
这样转换成的每个字符后面会有空行,用的时候需要regionUnicode.toSt...
分类:
其他好文 时间:
2014-06-12 17:47:11
阅读次数:
186
今天项目中遇到要获取前几个和最后几个元素,查了资料发现了这个slice()方法很实用,废了一番功夫终于明白怎么用的了。slice(start[,end]):start类型:Integer开始选取子集的位置。第一个元素是0.如果是负数,则可以从集合的尾部开始选起。end(可选)类型:Integer结束...
分类:
Web程序 时间:
2014-06-12 15:25:44
阅读次数:
263