原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given
an array of non-negative integers, you are initially positioned at the first
index of the arr...
分类:
编程语言 时间:
2014-06-12 18:04:54
阅读次数:
540
原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given
an array of non-negative integers, you are initially positioned at the first
index of the ...
分类:
编程语言 时间:
2014-06-12 17:38:49
阅读次数:
323
闭包 既保证了 内部函数的私有性 又可以向外公开通过一个已有对象 向它注入属性 1 /** 2
* 闭包 3 * 在函数中定义的函数,在外部使用 4 * 1、在函数内部定义的函数,在外部不能访问 5 */ 6 function a(){ 7 /** 8 *
b函数是...
分类:
Web程序 时间:
2014-06-12 17:23:55
阅读次数:
224
原题地址:https://oj.leetcode.com/problems/maximum-subarray/题意:Find
the contiguous subarray within an array (containing at least one number) which
has the ...
分类:
编程语言 时间:
2014-06-12 17:06:04
阅读次数:
339
function InsertSort($arr){ $num = count($arr);
for($i = 1; $i = 0; $j--){ if($arr[$j] > $key){ $arr[$j + 1...
分类:
Web程序 时间:
2014-06-12 16:51:05
阅读次数:
270
function Event(sender) { this._sender = sender;
this._listeners = [];}Event.prototype = { attach : function (listener) {
this._listene...
分类:
Web程序 时间:
2014-06-12 16:38:51
阅读次数:
272