剑指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 次
全部评论
相关推荐
01-21 04:38
中国矿业大学 大数据开发工程师 点赞 评论 收藏
分享
查看12道真题和解析