Skip to content

Commit 9953c15

Browse files
author
Joseph Luce
authored
Update 543_diameter_of_binary_tree.md
1 parent 683a5d3 commit 9953c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leetcode/easy/543_diameter_of_binary_tree.md

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

33
## Best Solution
44
- Runtime: O(N)
5-
- Space: O(D)
5+
- Space: O(H)
66
- N = Number of elements in tree
7-
- D = Depth of Tree
7+
- H = Height of Tree
88

99
Take this binary tree example:
1010
```

0 commit comments

Comments
 (0)