Find the root-to-leaf path with the max sum - can't compare issues

后端 未结 0 1595
暗喜
暗喜 2021-01-12 05:55

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题