Skip to content

Commit

Permalink
modified: Part 1/Easy 110. Balanced Binary Tree.py
Browse files Browse the repository at this point in the history
  • Loading branch information
open-minded13 committed Jul 24, 2024
1 parent 41ff5bf commit dc944bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Part 1/Easy 110. Balanced Binary Tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# Time Complexity: O(N), where N is the total number of nodes in the tree.
#
# Space Complexity: O(1). We use a constant amount of additional space.
# Space Complexity: O(H), where H is the height of the tree, due to the recursive call stack.
# In the worst case, the tree could be skewed, making the space complexity O(N).

from typing import Optional

Expand Down

0 comments on commit dc944bf

Please sign in to comment.