We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b4e0a commit 6afca92Copy full SHA for 6afca92
longest_increasing_sequence.md
@@ -1,7 +1,7 @@
1
# 问题简介
2
最长公共上升子序列,longest increasing sequence,简称LCIS
3
# 思路
4
-这个问题要由动态规划来解决,时间复杂度是O(n<sup>2</sup>),建立dp[n]和track[n]
+这个问题要由动态规划来解决,时间复杂度是O(n<sup>2</sup>),空间复杂度是O(n),建立dp[n]和track[n]
5
意义:
6
----
7
* dp[i]:以数据a[i]结尾的最长上升序列长度
0 commit comments