You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
'''
'''
Solution: The same concept as maxDepth of a BT except we just compare the depth of the current level of the node with each of its children and update accordingly as we get the depth of a node's children.