In a BST we need to find a pair whose sum is equal to a given element x without using map.
Anonymous
Inorder traversal will give a sorted array and then apply divide and conquer by addingt he first and last element. If the sum is greater than x then we need to shift the last element and if sum is less than x then we need to shift the first element.
Check out your Company Bowl for anonymous work chats.