码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
Array.prototype.slice.call(arguments)
我们知道,Array.prototype.slice.call(arguments)能将具有length属性的对象转成数组,除了IE下的节点集合(因为ie下的dom对象是以com对象的形式实现的,js对象与com对象不能进行转换) 如: 1 var a={length:2,0:'first',1:' ...
分类:其他好文   时间:2017-02-17 11:06:40    阅读次数:131
π框架参数规则(正则表达式验证)
1、'email' => array( 'name' => 'email', 'require' => true, 'min' => '1', 'regex' => "/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i" ...
分类:其他好文   时间:2017-02-17 09:51:57    阅读次数:196
二维数组去重
利用内部函数array_unique,将二维数组降一维再去重 ...
分类:编程语言   时间:2017-02-17 09:49:49    阅读次数:175
JavaSE学习笔记
1.数据类型 boolean char byte short int long double float double array class interface 总结: 前9种基本类型,后3中引用类型。其中基本类型又分为布尔型、字符型、数值型,数值型分为整型和浮点型。 boolean:不能用0或非 ...
分类:编程语言   时间:2017-02-16 23:32:49    阅读次数:227
leetcode : Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:其他好文   时间:2017-02-16 23:17:20    阅读次数:191
leetcode : Search for a Range
Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexi ...
分类:其他好文   时间:2017-02-16 23:03:39    阅读次数:220
LeetCode Longest Increasing Subsequence
原题链接在这里:https://leetcode.com/problems/longest-increasing-subsequence/ 题目: Given an unsorted array of integers, find the length of longest increasing s ...
分类:其他好文   时间:2017-02-16 13:15:16    阅读次数:221
三个ImageView 实现无线轮播 方法
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { //开始滚动,判断位置,然后替换复用的三张图 [self changeImageWithOffset:scrollView.contentOffset.x]; } - (void)cha... ...
分类:其他好文   时间:2017-02-16 12:59:34    阅读次数:189
Linux Awk使用案例总结
知识点: 1)数组 数组是用来存储一系列值的变量,可通过索引来访问数组的值。 Awk中数组称为关联数组,因为它的下标(索引)可以是数字也可以是字符串。 下标通常称为键,数组元素的键和值存储在Awk程序内部的一个表中,该表采用散列算法,因此数组元素是随机排序。 数组格式:array[index]=va ...
分类:系统相关   时间:2017-02-16 11:08:04    阅读次数:271
bzoj2738: 矩阵乘法
2738: 矩阵乘法 Description 给你一个N*N的矩阵,不用算矩阵乘法,但是每次询问一个子矩形的第K小数。 给你一个N*N的矩阵,不用算矩阵乘法,但是每次询问一个子矩形的第K小数。 给你一个N*N的矩阵,不用算矩阵乘法,但是每次询问一个子矩形的第K小数。 Input 第一行两个数N,Q, ...
分类:其他好文   时间:2017-02-16 10:47:05    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!