Update 0674.最长连续递增序列.md

更正对构造函数的使用
This commit is contained in:
wang2jun
2022-07-05 22:43:35 +08:00
committed by GitHub
parent 26ad08fe50
commit 0331eaa57f

View File

@ -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++) {