类的适配器模式classCIntegerSortAdapter:DoubleSort,Sortable{publicint[]Sort(int[]number){double[]dnum=newdouble[number.Length];int[]inum=newint[number.Length]...
分类:
其他好文 时间:
2014-06-11 08:04:50
阅读次数:
242
//js端function
println(string){ document.write(string+""); }//html端
分类:
其他好文 时间:
2014-06-10 00:10:30
阅读次数:
196
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-06-10 00:01:38
阅读次数:
392
## 哥德尔编号一个形式系统仅是一系列公理和规则,比如用简单的英文来记录公理,“Number 0
exists”。但我们能否把自然数关联到公理和规则呢?我们知道,在计算机上一切都是数字。比如,字母 “N” 是78,字母 "u" 是
117,诸如此类。“Number”这个单词对于我们来讲,就像 781...
分类:
其他好文 时间:
2014-06-09 23:46:38
阅读次数:
309
题目:
Determine whether an integer is a palindrome. Do this without extra space.
解题思路:
判断一个int型整数是不是回文数字,这个题也不难,依次取得数字最高位和最低位进行比较,就可以判断是不是回文数字。需要注意的是负数不是回文数字。
代码实现:...
分类:
其他好文 时间:
2014-06-08 15:35:48
阅读次数:
375
Single NumberGiven an array of integers, every
element appearstwiceexcept for one. Find that single one.Note:Your algorithm
should have a linear runti...
分类:
其他好文 时间:
2014-06-07 23:44:39
阅读次数:
302
(1)机器免登录ssh-keygen -t rsacd ~/.ssh/cat
id_rsa.pub >> authorized_keyschmod 600
authorized_keys[tip].ssh目录的权限必须是700[tip].ssh/authorized_keys文件权限必须是600(2...
分类:
其他好文 时间:
2014-06-07 23:11:37
阅读次数:
382
由于项目需要做一个动态的extjs树、列等等,简而言之,就是一个都是动态的加载功能,自己琢磨了半天,查各种资料,弄了将近两个星期,终于做出来了首先,想看表结构,我的这个功能需要主从两张表来支持代码目录表:CREATE
TABLE SYS_T01_CODECONTENT( ID NUMBER NOT ...
分类:
Web程序 时间:
2014-06-07 21:19:39
阅读次数:
457
A basic requirement is that the function should
provide a uniform distribution of hash values. A non-uniform distribution
increases the number of coll...
分类:
其他好文 时间:
2014-06-07 16:58:29
阅读次数:
240
Given a non-negative number represented as an
array of digits, plus one to the number.The digits are stored such that the most
significant digit is at...
分类:
其他好文 时间:
2014-06-07 16:56:28
阅读次数:
188