mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
Update 0674.最长连续递增序列.md
更正对构造函数的使用
This commit is contained in:
@ -300,7 +300,7 @@ Javascript:
|
||||
> 动态规划:
|
||||
```javascript
|
||||
const findLengthOfLCIS = (nums) => {
|
||||
let dp = Array(nums.length).fill(1);
|
||||
let dp = new Array(nums.length).fill(1);
|
||||
|
||||
|
||||
for(let i = 0; i < nums.length - 1; i++) {
|
||||
|
Reference in New Issue
Block a user