public class Solution {
public int jumpFloorII(int target) {
if (1 == target) {
return 1;
}
int pre = 1;
for (int i = 1; i < target; i++) {
pre *= 2;
}
return pre;
}
}
public class Solution {
public int jumpFloorII(int target) {
if (1 == target) {
return 1;
}
int pre = 1;
for (int i = 1; i < target; i++) {
pre *= 2;
}
return pre;
}
}