def maxDepth(self, root):
:type root: TreeNode
if root is None:
lHigh = 1+ self.maxDepth(root.left)
rHigh = 1+ self.maxDepth(root.right)
return lHigh if lHigh > rHigh else rHigh
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.