Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 063a3a5

Browse files
Update 236.lowest-common-ancestor-of-a-binary-tree.md
1 parent 5f1ab07 commit 063a3a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎problems/236.lowest-common-ancestor-of-a-binary-tree.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ class Solution:
137137

138138
**复杂度分析**
139139

140+
令 h 为树的高度。
141+
140142
- 时间复杂度:$O(N)$
141-
- 空间复杂度:$O(Height)$
143+
- 空间复杂度:$O(h)$
142144

143145
## 扩展
144146

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /