public int JumpFloorII(int target) {
if (target==0) {
return 1;
}
if (target==1) {
return 1;
}
return JumpFloorII(target-1)*2;
}
public int JumpFloorII(int target) {
if (target==0) {
return 1;
}
if (target==1) {
return 1;
}
return JumpFloorII(target-1)*2;
}
本文标题:Other:一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也
本文链接:https://www.haomeiwen.com/subject/bmearttx.html
网友评论