1,'parentid'=>0,'name'=>'中国'); $data[]=array('id'=>2,'parentid'=>0,'name'=>'美国'); $data[]=array('id'=>3,'parentid'=>0,'name'=>'韩国'); $data[]=array('id... ...
分类:
Web程序 时间:
2016-12-29 16:44:17
阅读次数:
182
1、function declaration isn’t a prototype括号中无参数,也要加void 2、array subscript is above array bounds数组下标大于数组边界 例如: #define LOCKNET_KEY_LEN 16 #define KEY_LE ...
分类:
编程语言 时间:
2016-12-29 16:31:54
阅读次数:
2451
Problem: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] ...
分类:
其他好文 时间:
2016-12-29 14:27:12
阅读次数:
173
参考: Suffix array - Wiki 后缀数组(suffix array)详解 6.3 Suffix Arrays - 算法红宝书 Suffix Array 后缀数组 基本概念 应用:字符串处理、生物信息序列处理 后缀:学过英语的都知道什么叫后缀,就是从某个位置开始到字符串结尾的特殊子串,... ...
分类:
编程语言 时间:
2016-12-29 10:42:24
阅读次数:
284
一. 泛型概念的提出(为什么需要泛型)?
首先,我们看下下面这段简短的代码:
1 public class GenericTest {
2
3 public sta...
分类:
编程语言 时间:
2016-12-29 08:29:47
阅读次数:
284
array_change_key_case -- 返回字符串键名全为小写或大写的数组 array_chunk -- 将一个数组分割成多个 array_combine -- 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值 array_count_values -- 统计数组中所有的值出 ...
分类:
编程语言 时间:
2016-12-29 08:16:11
阅读次数:
208
136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. (Easy) Note:Your algorithm should hav ...
分类:
其他好文 时间:
2016-12-29 07:49:35
阅读次数:
182
今天学习的主要内容: javascript: 1、if语句,switch语句,while循环以及for循环; 1)if语句 if(boolean){}; if(boolean){} else if(boolean); if(boolean){} else if(boolean) else{}; 2) ...
分类:
编程语言 时间:
2016-12-29 07:48:50
阅读次数:
215
数组的使用:chenxy@ubuntu:~/linux$ array[1]=2chenxy@ubuntu:~/linux$ array[2]=3chenxy@ubuntu:~/linux$ array[3]=4chenxy@ubuntu:~/linux$ echo "${array[*]}"arra ...
分类:
编程语言 时间:
2016-12-29 07:15:29
阅读次数:
172
1 function $$(selector,context){ 2 context=context||document; 3 var elements=context.querySelectorAll(selector); 4 return Array.prototype.slice.call(e... ...
分类:
Web程序 时间:
2016-12-29 03:15:13
阅读次数:
162