当前位置:网站首页>剑指Offer(九):变态跳台阶
剑指Offer(九):变态跳台阶
2022-07-26 10:35:00 【康斯坦奇】
解法1:直接找规律
class Solution:
def jumpFloorII(self, number):
# write code here
return 2**(number-1)#2的(n-1)幂,找规律就能得出
边栏推荐
- [leetcode每日一题2021/5/8]1723. 完成所有工作的最短时间
- The difference between equals and = =
- 软件打不开了
- Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
- 2022pta平时训练题(1~10题字符串处理问题)
- cavans实现静态滚动弹幕
- json_ object_ put: Assertion `jso->_ ref_ count > 0‘ failed. Aborted (core dumped)
- [leetcode每日一题2021/8/31]1109. 航班预订统计【中等】差分数组
- vscode上使用anaconda(已经配置好环境)
- 第8期:云原生—— 大学生职场小白该如何学
猜你喜欢
.NET 开源框架在工业生产中的应用
Some cutting-edge research work sharing of SAP ABAP NetWeaver containerization
【论文下饭】Deep Mining External Imperfect Data for ChestX-ray Disease Screening
Okaleido生态核心权益OKA,尽在聚变Mining模式
js 获得当前时间,时间与时间戳的转换
Introduction to data analysis | kaggle Titanic mission (I) - > data loading and preliminary observation
[Halcon vision] array
[leetcode每日一题2021/4/23]368. 最大整除子集
控制随机抽中几率 [ C# | Random ]
数据分析入门 | kaggle泰坦尼克任务(一)—>数据加载和初步观察
随机推荐
[Halcon vision] morphological corrosion
[Halcon vision] affine transformation
[leetcode每日一题2021/2/13]448. 找到所有数组中消失的数字
Structure of [Halcon vision] operator
【机器学习小记】【搭建循环神经网络及其应用】deeplearning.ai course5 1st week programming(keras)
[C language] LINQ overview
js 获得当前时间,时间与时间戳的转换
js,e.pageX、pageY模态框拖动
超图 影像 如何去除黑边(两种方法)
Mlx90640 infrared thermal imager temperature sensor module development notes (VI) pseudo color coding of infrared images
.NET操作Redis String字符串
父类对子类的引用(父类引用指向子类对象)
Dry goods likeshop takeout order system is open source, 100% open source, no encryption
第7期:内卷和躺平,你怎么选
Comparison of packet capturing tools fiddler and Wireshark
移动端H5开发常用技巧总结
卸载魅族应用商店
Redis特殊数据类型使用场景
Inheritance method of simplified constructor (II) - class inheritance in ES6
【dectectron2】跟着官方demo一起做