Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can you reduce this problem to the classical Two Sum problem?
Do an in-order traversal of each tree to convert them to sorted arrays.
Solve the classical Two Sum problem.