Given the roots of two binary search trees root1 and root2, alongside an integer target, return true if there exists a node in the first tree with value val1 and a node in the second tree with value val2 such that val1 val2 equals target. Otherwise, return false.
Constraints:
The number of nodes in each tree is in the range
Node.val, target
Given the roots of two binary search trees root1 and root2, alongside an integer target, return true if there exists a node in the first tree with value val1 and a node in the second tree with value val2 such that val1 val2 equals target. Otherwise, return false.
Constraints:
The number of nodes in each tree is in the range
Node.val, target