标签:style ret else bsp log offer number ber class
class Solution { public: int jumpFloorII(int number) { if (number == 1) { return 1; } else if (number == 2) { return 2; } else { return(2 * jumpFloorII(number - 1)); } } };
标签:style ret else bsp log offer number ber class
原文地址:http://www.cnblogs.com/159269lzm/p/7260747.html