Showing posts with label Inorder. Show all posts
Showing posts with label Inorder. 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...

Create Binary Tree - Preorder, Inorder and Postorder Traversal

Lets see simple java code to create Binary Tree and all 3 traversals like Preorder, Inorder and Postorder. Used 2 classes called BST (used for binary tree node) and BinaryTree to construct Binary Tree and...