leetcode走楼梯-Climbing-Stairs:Leetcode问题70

时间:2021-07-01 06:02:26
【文件属性】:
文件名称:leetcode走楼梯-Climbing-Stairs:Leetcode问题70
文件大小:950B
文件格式:ZIP
更新时间:2021-07-01 06:02:26
系统开源 leetcode 走踏板爬楼梯 Leetcode 问题 70 你正在爬楼梯。 需要n步才能到达顶部。 每次您可以爬 1 或 2 个台阶。 你可以通过多少种不同的方式登上顶峰? 示例 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps 示例 2: Input: 3 Output: 3 Explanation: There are three ways to climb to the top. 1. 1 step + 1 step + 1 step 2. 1 step + 2 steps 3. 2 steps + 1 step 约束: 1 <= n <= 45
【文件预览】:
Climbing-Stairs-master
----climbStairs.java(335B)
----README.md(523B)

网友评论