We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd9fd6 commit 4878a1fCopy full SHA for 4878a1f
problems/108.convert-sorted-array-to-binary-search-tree.md
@@ -79,7 +79,7 @@ var sortedArrayToBST = function (nums) {
79
**复杂度分析**
80
81
- 时间复杂度:$O(N)$
82
-- 空间复杂度:每次递归都 copy 了 N 的 空间,因此时间复杂度为 $O(N ^ 2)$
+- 空间复杂度:每次递归都 copy 了 N 的 空间,因此空间复杂度为 $O(N ^ 2)$
83
84
然而,实际上没必要开辟新的空间:
85
0 commit comments