更新 0070.爬楼梯 排版格式修复

This commit is contained in:
jinbudaily
2023-07-26 14:56:48 +08:00
parent b295b12d1a
commit 9b24f3cdef
2 changed files with 10 additions and 9 deletions

View File

@ -29,9 +29,9 @@
* 1 阶 + 2 阶 * 1 阶 + 2 阶
* 2 阶 + 1 阶 * 2 阶 + 1 阶
# 视频讲解 ## 算法公开课
**《代码随想录》算法视频公开课:[带你学透动态规划-爬楼梯|LeetCode:70.爬楼梯)](https://www.bilibili.com/video/BV17h411h7UH),相信结合视频在看本篇题解,更有助于大家对本题的理解**。 **[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html)[带你学透动态规划-爬楼梯|LeetCode:70.爬楼梯)](https://www.bilibili.com/video/BV17h411h7UH),相信结合视频在看本篇题解,更有助于大家对本题的理解**。
## 思路 ## 思路
@ -522,3 +522,4 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank"> <a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/> <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a> </a>

View File

@ -127,8 +127,8 @@ public:
## 其他语言版本 ## 其他语言版本
### Java:
Java
```java ```java
class Solution { class Solution {
public int climbStairs(int n) { public int climbStairs(int n) {
@ -148,7 +148,7 @@ class Solution {
} }
``` ```
Python3 ### Python3
```python ```python
@ -166,8 +166,8 @@ class Solution:
return dp[n] return dp[n]
``` ```
### Go
Go
```go ```go
func climbStairs(n int) int { func climbStairs(n int) int {
//定义 //定义
@ -189,7 +189,8 @@ func climbStairs(n int) int {
} }
``` ```
JavaScript: ### JavaScript:
```javascript ```javascript
var climbStairs = function(n) { var climbStairs = function(n) {
const dp = new Array(n + 1).fill(0); const dp = new Array(n + 1).fill(0);
@ -206,7 +207,7 @@ var climbStairs = function(n) {
}; };
``` ```
TypeScript ### TypeScript
```typescript ```typescript
function climbStairs(n: number): number { function climbStairs(n: number): number {
@ -226,7 +227,7 @@ function climbStairs(n: number): number {
}; };
``` ```
Rust: ### Rust:
```rust ```rust
impl Solution { impl Solution {
@ -250,4 +251,3 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank"> <a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/> <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a> </a>