Showing posts with label Postorder. Show all posts
Showing posts with label Postorder. Show all posts

How to do Iterative Postorder Traversal in BST

Earlier we have seen lot of tutorials related to Binary Search Tree like How to find the diameter of a binary tree Converting a Binary Tree into its Mirror Tree Inorder Predecessor and Successor...

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...