题解 | #字母收集#
跳台阶
http://www.nowcoder.com/practice/8c82a5b80378478f9484d87d1c5f12a4
如果不判断target,直接return 递归结果;为什么会越界
public int jumpFloor(int target) {
if(target<=1) return 1;
return jumpFloor(target-1)+jumpFloor(target-2);
}
}