Fetching data...
This may take a moment
Back
1150. Two Sum BSTs
Medium
Two Pointers
Binary Search
Stack
Tree
Depth-First Search
Binary Search Tree
Binary Tree
Solve on LeetCode
View Solutions
Description
Hints
Hint 1
How can you reduce this problem to the classical Two Sum problem?
Hint 2
Do an in-order traversal of each tree to convert them to sorted arrays.
Hint 3
Solve the classical Two Sum problem.
Similar Questions
Two Sum IV - Input is a BST
Easy
Statistics
Acceptance
68.1%
Submissions
88,726
Accepted
60,448