home archives github knives links
tags dfs leetcode
categories
only title title and content
leetcode124

题解

对每个节点保存左右子树路径和较大的一个

每个节点判断同时包含左右子树和自身的情况