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 7513c91 commit 67a6f38Copy full SHA for 67a6f38
Solutions/1143. 最长公共子序列.md
@@ -67,7 +67,7 @@ class Solution:
67
return dp[size1][size2]
68
```
69
70
-### 思路 1 :复杂度分析
+### 思路 1:复杂度分析
71
72
- **时间复杂度**:$O(n^2)$。两重循环遍历的时间复杂度是 $O(n^2)$,所以总的时间复杂度为 $O(n^2)$。
73
- **空间复杂度**:$O(n^2)$。用到了二维数组保存状态,所以总体空间复杂度为 $O(n^2)$。
0 commit comments