return True if this node is the target_leaf or target leaf is present in one of its descendants
if ( root == target_leaf or printPath ( root . left , target_leaf ) or printPath ( root . right , target_leaf ) ) : NEW_LINE INDENT print ( root . data , end = " ▁ " ) NEW_LINE return True NEW_LINE DEDENT return False NEW_LINE max_sum_ref = 0 NEW_LINE target_leaf_ref = None NEW_LINE