Need a corner case check for only one element [0]. 1 class Solution { 2 public: 3 bool canJump(int A[], int n) { 4 if (n = n-1) return tru...
分类:
其他好文 时间:
2015-03-20 06:51:03
阅读次数:
127
因为重装系统的缘故,需要重新搭建octopress环境,在执行到:bundle install会出现一些这样的错误:An error occurred while installing timers (4.0.1), and Bundler cannot continue.An error occu...
分类:
其他好文 时间:
2015-03-17 12:18:18
阅读次数:
189
Chasingwaves by myselfin theocean of endless sorrowMakingwishes that i willfind myherd tomorrow52 Hertz ofheartbreak52 Hertz ofheartachePacificdeep is...
分类:
其他好文 时间:
2015-03-15 23:35:16
阅读次数:
212
Jump Game问题:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents...
分类:
其他好文 时间:
2015-03-14 15:12:44
阅读次数:
119
第一种方式是直接使用锚点配合链接标签:
Scroll to here
Jump to H2
现在大多数实现都采用该种方式。但是这种方式没有动画效果,跳转是直接发生的。
第二种方式使用jQuery中的animate方法实现:
var target= $('#h2-anchor').offset().top;
$('body').animate({scrollTop...
分类:
Web程序 时间:
2015-03-14 12:29:07
阅读次数:
154
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...
分类:
其他好文 时间:
2015-03-13 22:13:50
阅读次数:
131
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 maximum jump length at that position.
Determine i...
分类:
其他好文 时间:
2015-03-13 20:48:48
阅读次数:
118
题目链接:Jump Game
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 maximum jump length at that position.
...
分类:
其他好文 时间:
2015-03-12 11:38:00
阅读次数:
123
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 maximum jump length at that position.
Determine if yo...
分类:
其他好文 时间:
2015-03-11 21:40:22
阅读次数:
126