public class Solution { public int process(TreeNode root){ if(root == null){ return 0; } int left = process(root.left); int right = process(root.right); if(left == right){ root.val = left +right + 1; } else{ root.val = left > right ? 2*left +1:2*right + 1; } return root.val % (10^9 + 7); } } 大佬帮我看下第三题这么写有什么问题,把左右节点的值累加到root的值上,感觉思路上没问题,但只A了10%