Skip to content

Commit 457b394

Browse files
committed
add end line
1 parent dd9a296 commit 457b394

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
# Time: O(n)
23
# Maximum Depth of Binary Tree
34
class Solution:
45
def maxDepth(self, root: Optional[TreeNode]) -> int:
@@ -8,6 +9,4 @@ def maxDepth(self, root: Optional[TreeNode]) -> int:
89
right = self.maxDepth(root.right)
910

1011
return 1 + max(left, right)
11-
12-
# Time: O(n)
1312

0 commit comments

Comments
 (0)