题解 | #跳台阶扩展问题 观察法#
跳台阶扩展问题
http://www.nowcoder.com/practice/22243d016f6b47f2a6928b4313c85387
public class Solution {
public int jumpFloorII(int target) {
return (int) Math.pow(2, target - 1);
}
}
跳台阶扩展问题
http://www.nowcoder.com/practice/22243d016f6b47f2a6928b4313c85387
public class Solution {
public int jumpFloorII(int target) {
return (int) Math.pow(2, target - 1);
}
}
相关推荐