maxLevel : keeps track of maximum level seen so far . res : Value of deepest node so far . level : Level of root
def find ( root , level , maxLevel , res ) : NEW_LINE INDENT if ( root != None ) : NEW_LINE INDENT level += 1 NEW_LINE find ( root . left , level , maxLevel , res ) NEW_LINE DEDENT DEDENT