Skip to content

Commit 6afca92

Browse files
Update longest_increasing_sequence.md
1 parent 30b4e0a commit 6afca92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

longest_increasing_sequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 问题简介
22
最长公共上升子序列,longest increasing sequence,简称LCIS
33
# 思路
4-
这个问题要由动态规划来解决,时间复杂度是O(n<sup>2</sup>),建立dp[n]和track[n]
4+
这个问题要由动态规划来解决,时间复杂度是O(n<sup>2</sup>),空间复杂度是O(n),建立dp[n]和track[n]
55
意义:
66
----
77
* dp[i]:以数据a[i]结尾的最长上升序列长度

0 commit comments

Comments
 (0)