本题的思路:台阶数 --> 跳跃次数0 --> 11 --> 12 --> 2 = 2^13 --> 4 = 2^24 --> 8 = 2^3...n --> 2^(n-1)分析可知n阶台阶的跳跃方法为2^(n-1),c++代码如下:class Solution {public: int jumpFloorII(int number) { if((0 == number) || (1 == numb...