赞
踩
代码实现:
#include <iostream>
using namespace std;
class Solution {
public:
int jumpFloorII(int number) {
if (number <= 0)
return 0;
if (1 == number)
return 1;
return 2 * jumpFloorII(number - 1);
}
};
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。