Skip to content

Commit 28762b2

Browse files
authored
Update Balanced Binary Tree - Leetcode 110.py
1 parent 5619146 commit 28762b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Balanced Binary Tree - Leetcode 110.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ def height(root):
1919

2020
height(root)
2121
return balanced[0]
22+
23+
# Time Complexity: O(n)
24+
# Space Complexity: O(h) { here "h" is the height of the tree }

0 commit comments

Comments
 (0)