剑指offer:变态跳台阶
class Solution {
public:
int jumpFloorII(int number) {
//通过移位计算2的次方
return 1<<(number-1);
}
};
class Solution {
public:
int jumpFloorII(int number) {
//通过移位计算2的次方
return 1<<(number-1);
}
};
2020-05-07
在牛客打卡28天,今天学习:刷题 1 道/代码提交 1 次
全部评论
相关推荐

点赞 评论 收藏
分享
点赞 评论 收藏
分享