//REM: RECURSION NOT REQUIRED IN THIS TREE QS...NEECHE JAAKR CHECK KRNA HAI BAS ...NOT SUM/MIRROR AND ALL!...KRKE KUCH RETURN KRNA HAI // code here. // update pre[0] with the predecessor of the key // ...
There is BST given with root node with key part as integer only. You need to find the inorder successor and predecessor of a given key. In case, if the either of predecessor or successor is not found ...