0663. Equal Tree Partition
https://leetcode.com/problems/equal-tree-partition
Description
Given the root of a binary tree, return true if you can partition the tree into two trees with equal sums of values after removing exactly one edge on the original tree.
Example 1:

Example 2:

Constraints:
The number of nodes in the tree is in the range
[1, 104].-105 <= Node.val <= 105
ac
Last updated
Was this helpful?