Skip to content

Commit 6a3efab

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

leetcode/easy/543_diameter_of_binary_tree.md

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

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

98
Take this binary tree example:
109
```

0 commit comments

Comments
 (0)