Merge branch 'master' into patch-46

This commit is contained in:
程序员Carl
2023-07-30 16:35:50 +08:00
committed by GitHub
212 changed files with 3154 additions and 2154 deletions

View File

@@ -29,7 +29,7 @@
## 算法公开课
**《代码随想录》算法视频公开课:[动态规划之子序列问题,重点在于连续!| LeetCode674.最长连续递增序列](https://www.bilibili.com/video/BV1bD4y1778v),相信结合视频再看本篇题解,更有助于大家对本题的理解**。
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html)[动态规划之子序列问题,重点在于连续!| LeetCode674.最长连续递增序列](https://www.bilibili.com/video/BV1bD4y1778v),相信结合视频再看本篇题解,更有助于大家对本题的理解**。
## 思路
@@ -157,8 +157,7 @@ public:
## 其他语言版本
Java
### Java
> 动态规划:
```java
@@ -207,7 +206,7 @@ public static int findLengthOfLCIS(int[] nums) {
}
```
Python
### Python
DP
```python
@@ -261,7 +260,8 @@ class Solution:
return result
```
Go
### Go
> 动态规划:
```go
func findLengthOfLCIS(nums []int) int {
@@ -302,10 +302,9 @@ func findLengthOfLCIS(nums []int) int {
}
```
Rust:
### Rust:
>动态规划
```rust
pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {
if nums.is_empty() {
@@ -323,6 +322,7 @@ pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {
}
```
> 贪心
```rust
@@ -342,7 +342,8 @@ impl Solution {
}
```
Javascript
### Javascript
> 动态规划:
```javascript
@@ -385,7 +386,7 @@ const findLengthOfLCIS = (nums) => {
};
```
TypeScript
### TypeScript
> 动态规划:
@@ -431,3 +432,4 @@ function findLengthOfLCIS(nums: number[]): number {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>