Code to find median in BST
Anonymous
Where n = number of elements in the BST, use an in-order Depth first search to traverse the tree and return element n/2 + 1. (The +1 is needed, assuming that n is an odd number and there is a true single median value.)
Check out your Company Bowl for anonymous work chats.