Harukaze

 

2021年7月21日

【力扣】爬楼梯

摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/climbing-stairs 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是一个正整数。 示例 1: 输 阅读全文

posted @ 2021-07-21 10:53 Harukaze 阅读(124) 评论(0) 推荐(0)

【力扣】最小路径和

摘要: 作者:LeetCode-Solution链接:https://leetcode-cn.com/problems/minimum-path-sum/solution/zui-xiao-lu-jing-he-by-leetcode-solution/来源:力扣(LeetCode) 方法一:动态规划由于路 阅读全文

posted @ 2021-07-21 09:18 Harukaze 阅读(133) 评论(0) 推荐(0)

导航