December_day_1
Leetcode December Challenge Day 1 Link to heading
Solution to the question
class Solution(object):
def maxDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if root is None:
return 0
return 1+ max(self.maxDepth(root.left), self.maxDepth(root.right))