We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b38da commit 4b09028Copy full SHA for 4b09028
maximum-depth-of-binary-tree/sungjinwi.py
@@ -26,4 +26,4 @@ class Solution:
26
def maxDepth(self, root: Optional[TreeNode]) -> int:
27
if not root:
28
return 0
29
- return max(self.maxDepth(root.left), self.maxDepth(root.right)) + 1
+ return max(self.maxDepth(root.left), self.maxDepth(root.right)) + 1
0 commit comments