array_change_key_case —
返回字符串键名全为小写或大写的数组array_chunk — 将一个数组分割成多个array_combine —
创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值array_count_values — 统计数组中所有的值出现的次数arr...
分类:
Web程序 时间:
2014-05-09 18:21:04
阅读次数:
729
A heap is a partially sorted binary tree.
Although a heap is not completely in order, it conforms to a sorting principle:
every node has a value less ...
分类:
其他好文 时间:
2014-05-09 17:34:18
阅读次数:
339
Given a set of non-overlapping intervals,
insert a new interval into the intervals (merge if necessary).You may assume
that the intervals were initial...
分类:
其他好文 时间:
2014-05-09 16:29:17
阅读次数:
330
1 $() vs $$("someSelector") returns a array.
This is defiend in jQuery.prototype.$.methodName is a method defined in
jQuery...2methods below will stop...
分类:
Web程序 时间:
2014-05-09 11:33:38
阅读次数:
371
NSUserDefaults
序列号方法类似于NSArray,常用与存储小规模数据,存在沙盒里,是plist文件第一、保存数据代码:NSUserDefaults
*userDefault=[NSUserDefaults standardUserDefaults];NSArray *array=[NS...
分类:
其他好文 时间:
2014-05-09 10:54:20
阅读次数:
260
MySQL常用的存储引擎为MyISAM、InnoDB、MEMORY、MERGE,其中InnoDB提供事务安全表,其他存储引擎都是非事务安全表。MyISAM是MySQL的默认存储引擎。MyISAM不支持事务、也不支持外键,但其访问速度快,对事务完整性没有要求。InnoDB存储引擎提供了具有提交、回滚和...
分类:
数据库 时间:
2014-05-08 22:09:29
阅读次数:
452
说说那些令人惊叹的下拉效果1.
动画下拉,这里借用一下github的资源优点:直接用gif图处理,下拉进度完全按照gif图运行时间,只要时间和下拉进度匹配就可以了,
效果很流畅https://dribbble.com/shots/1418440-Twisted-gif?list=searches&t...
分类:
移动开发 时间:
2014-05-08 21:28:47
阅读次数:
519
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-05 10:05:58
阅读次数:
300
Array和List的区别在于前者可以随机访问,而后者只能顺序访问。对于把排好序的array转成BST,可以用top-down的方式,很直观也很自然,时间复杂度是O(n)。而对于List如果采用同样的方式,每次需要顺序遍历到中间节点,时间复杂度变成O(nlogn),如果换一种思路,down-top,...
分类:
其他好文 时间:
2014-05-05 09:34:29
阅读次数:
454
enum.php/**
*本类主要是实现枚举的功能
*@paramunknown_type$base_class
*@paramunknown_type$args
*@paramunknown_type$codeArgs
*/
functionenum($base_class,array$args,array$codeArgs){
$class_parts=preg_split(‘/\s+/‘,$base_class);
$base_class_name=array_shift($cl..
分类:
其他好文 时间:
2014-05-04 17:14:55
阅读次数:
279