LeetCode
Equal Tree Partition
Click
here
for an explanation.