Skip to content

Commit 31e7631

Browse files
author
Joseph Luce
authored
Update 543_diameter_of_binary_tree.md
1 parent 95c307f commit 31e7631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leetcode/easy/543_diameter_of_binary_tree.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## Best Solution
44
- Runtime: O(N)
5-
- Space: O(N)
5+
- Space: O(H)
66
- N = Number of nodes in binary tree
7+
- H = Height of the tree
78

89
Take this binary tree example:
910
```

0 commit comments

Comments
 (0)