Skip to content

Commit

Permalink
0300.最长上升子序列:调整笔误
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyangu committed Dec 27, 2021
1 parent eb2b5e7 commit e1b489d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0300.最长上升子序列.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

dp[i] 是有0到i-1各个位置的最长升序子序列 推导而来,那么遍历i一定是从前向后遍历。

j其实就是0到i-1,遍历i的循环里外层,遍历j则在内层,代码如下:
j其实就是0到i-1,遍历i的循环在外层,遍历j则在内层,代码如下:

```CPP
for (int i = 1; i < nums.size(); i++) {
Expand Down

0 comments on commit e1b489d

Please sign in to comment.