README ¶ < Previous Next > 653. Two Sum IV - Input is a BST (Easy) Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. Example 1: Input: 5 / \ 3 6 / \ \ 2 4 7 Target = 9 Output: True Example 2: Input: 5 / \ 3 6 / \ \ 2 4 7 Target = 28 Output: False Related Topics [Tree] Similar Questions Two Sum (Easy) Two Sum II - Input array is sorted (Easy) Two Sum III - Data structure design (Easy) Two Sum BSTs (Medium) Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files two_sum_iv_input_is_a_bst.go Click to show internal directories. Click to hide internal directories.