剑指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 次
全部评论
相关推荐
05-26 21:23
江南大学 前端工程师 点赞 评论 收藏
分享
04-15 13:02
四川轻化工大学 测试工程师 点赞 评论 收藏
分享