Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 038d509

Browse files
更新 0674.最长连续递增序列 排版格式修复
1 parent 6b32268 commit 038d509

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

‎problems/0300.最长上升子序列.md‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
## 算法公开课
3535

36-
**《代码随想录》算法视频公开课:[动态规划之子序列问题,元素不连续!| LeetCode:300.最长递增子序列](https://www.bilibili.com/video/BV1ng411J7xP),相信结合视频再看本篇题解,更有助于大家对本题的理解**
36+
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html)::[动态规划之子序列问题,元素不连续!| LeetCode:300.最长递增子序列](https://www.bilibili.com/video/BV1ng411J7xP),相信结合视频再看本篇题解,更有助于大家对本题的理解**
3737

3838

3939
## 思路
@@ -124,8 +124,8 @@ public:
124124
125125
## 其他语言版本
126126
127+
### Java:
127128
128-
Java:
129129
```Java
130130
class Solution {
131131
public int lengthOfLIS(int[] nums) {
@@ -147,7 +147,7 @@ class Solution {
147147
}
148148
```
149149

150-
Python:
150+
### Python:
151151

152152
DP
153153
```python
@@ -189,7 +189,8 @@ class Solution:
189189
return len(tails) # 返回递增子序列的长度
190190

191191
```
192-
Go:
192+
### Go:
193+
193194
```go
194195
// 动态规划求解
195196
func lengthOfLIS(nums []int) int {
@@ -248,7 +249,8 @@ func lengthOfLIS(nums []int ) int {
248249
}
249250
```
250251

251-
Javascript
252+
### Javascript:
253+
252254
```javascript
253255
const lengthOfLIS = (nums) => {
254256
let dp = Array(nums.length).fill(1);
@@ -267,7 +269,7 @@ const lengthOfLIS = (nums) => {
267269
};
268270
```
269271

270-
TypeScript
272+
### TypeScript:
271273

272274
```typescript
273275
function lengthOfLIS(nums: number[]): number {
@@ -288,7 +290,8 @@ function lengthOfLIS(nums: number[]): number {
288290
};
289291
```
290292

291-
Rust:
293+
### Rust:
294+
292295
```rust
293296
pub fn length_of_lis(nums: Vec<i32>) -> i32 {
294297
let mut dp = vec![1; nums.len() + 1];
@@ -307,13 +310,8 @@ pub fn length_of_lis(nums: Vec<i32>) -> i32 {
307310

308311

309312

310-
311-
312-
313-
314-
315-
316313
<p align="center">
317314
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
318315
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
319316
</a>
317+

‎problems/0674.最长连续递增序列.md‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
## 算法公开课
3131

32-
**《代码随想录》算法视频公开课:[动态规划之子序列问题,重点在于连续!| LeetCode:674.最长连续递增序列](https://www.bilibili.com/video/BV1bD4y1778v),相信结合视频再看本篇题解,更有助于大家对本题的理解**
32+
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html):[动态规划之子序列问题,重点在于连续!| LeetCode:674.最长连续递增序列](https://www.bilibili.com/video/BV1bD4y1778v),相信结合视频再看本篇题解,更有助于大家对本题的理解**
3333

3434

3535
## 思路
@@ -157,8 +157,7 @@ public:
157157

158158
## 其他语言版本
159159

160-
161-
Java:
160+
### Java:
162161

163162
> 动态规划:
164163
```java
@@ -207,7 +206,7 @@ public static int findLengthOfLCIS(int[] nums) {
207206
}
208207
```
209208

210-
Python:
209+
### Python:
211210

212211
DP
213212
```python
@@ -261,7 +260,8 @@ class Solution:
261260
return result
262261
```
263262

264-
Go:
263+
### Go:
264+
265265
> 动态规划:
266266
```go
267267
func findLengthOfLCIS(nums []int) int {
@@ -302,7 +302,8 @@ func findLengthOfLCIS(nums []int) int {
302302
}
303303
```
304304

305-
Rust:
305+
### Rust:
306+
306307
```rust
307308
pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {
308309
if nums.is_empty() {
@@ -320,7 +321,7 @@ pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {
320321
}
321322
```
322323

323-
Javascript:
324+
### Javascript:
324325

325326
> 动态规划:
326327
```javascript
@@ -363,7 +364,7 @@ const findLengthOfLCIS = (nums) => {
363364
};
364365
```
365366

366-
TypeScript:
367+
### TypeScript:
367368

368369
> 动态规划:
369370
@@ -409,3 +410,4 @@ function findLengthOfLCIS(nums: number[]): number {
409410
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
410411
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
411412
</a>
413+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /