I am now working on find the root-to-leaf path with the maximum sum. My approach is as:
def max_sum(root): _max = 0 find_max(root, _max, 0) return