Skip to content

Commit 063a3a5

Browse files
authored
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)