Skip to content

Commit

Permalink
更新 0070.爬楼梯 排版格式修复
Browse files Browse the repository at this point in the history
  • Loading branch information
jinbudaily committed Jul 26, 2023
1 parent b295b12 commit 9b24f3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions problems/0070.爬楼梯.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* 1 阶 + 2 阶
* 2 阶 + 1 阶

# 视频讲解
## 算法公开课

**《代码随想录》算法视频公开课:[带你学透动态规划-爬楼梯|LeetCode:70.爬楼梯)](https://www.bilibili.com/video/BV17h411h7UH),相信结合视频在看本篇题解,更有助于大家对本题的理解**
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html)[带你学透动态规划-爬楼梯|LeetCode:70.爬楼梯)](https://www.bilibili.com/video/BV17h411h7UH),相信结合视频在看本篇题解,更有助于大家对本题的理解**


## 思路
Expand Down Expand Up @@ -522,3 +522,4 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>

14 changes: 7 additions & 7 deletions problems/0070.爬楼梯完全背包版本.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public:
## 其他语言版本
### Java:
Java:
```java
class Solution {
public int climbStairs(int n) {
Expand All @@ -148,7 +148,7 @@ class Solution {
}
```

Python3:
### Python3:


```python
Expand All @@ -166,8 +166,8 @@ class Solution:
return dp[n]
```

### Go:

Go:
```go
func climbStairs(n int) int {
//定义
Expand All @@ -189,7 +189,8 @@ func climbStairs(n int) int {
}
```

JavaScript:
### JavaScript:

```javascript
var climbStairs = function(n) {
const dp = new Array(n + 1).fill(0);
Expand All @@ -206,7 +207,7 @@ var climbStairs = function(n) {
};
```

TypeScript:
### TypeScript:

```typescript
function climbStairs(n: number): number {
Expand All @@ -226,7 +227,7 @@ function climbStairs(n: number): number {
};
```

Rust:
### Rust:

```rust
impl Solution {
Expand All @@ -250,4 +251,3 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>

0 comments on commit 9b24f3c

Please sign in to comment.