Showing posts with label Inorder Predecessor and Successor of Binary Search Tree. Show all posts
Showing posts with label Inorder Predecessor and Successor of Binary Search Tree. Show all posts

Inorder Predecessor and Successor of Binary Search Tree

In a given Binary Search Tree need to find the predecessor and Successor of a given node. What is Predecessor and Successor ? In a given Binary Search Tree highest element on the left...