码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
php部分,一个用递归无限分类的方法
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
c语言warning总结
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
LeetCode 219 Contains Duplicate II
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)
参考: Suffix array - Wiki 后缀数组(suffix array)详解 6.3 Suffix Arrays - 算法红宝书 Suffix Array 后缀数组 基本概念 应用:字符串处理、生物信息序列处理 后缀:学过英语的都知道什么叫后缀,就是从某个位置开始到字符串结尾的特殊子串,... ...
分类:编程语言   时间:2016-12-29 10:42:24    阅读次数:284
Java泛型详解
一. 泛型概念的提出(为什么需要泛型)? 首先,我们看下下面这段简短的代码: 1 public class GenericTest { 2 3 public sta...
分类:编程语言   时间:2016-12-29 08:29:47    阅读次数:284
php常用的数组函数
array_change_key_case -- 返回字符串键名全为小写或大写的数组 array_chunk -- 将一个数组分割成多个 array_combine -- 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值 array_count_values -- 统计数组中所有的值出 ...
分类:编程语言   时间:2016-12-29 08:16:11    阅读次数:208
LeetCode136 Single Number, LeetCode137 Single Number II, LeetCode260 Single Number III
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
2016/12/28_javascript
今天学习的主要内容: 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
封装一个函数获取匹配特定的css选择符
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!