Skip to content
Related Articles
Open in App
Not now

Related Articles

G-Fact 8

Improve Article
Save Article
Like Article
  • Difficulty Level : Easy
  • Last Updated : 06 Jul, 2018
Improve Article
Save Article
Like Article

To uniquely construct a Binary Tree, Inorder together with either Postorder or Preorder must be given (See this for details). However, either Postorder or Preorder traversal is sufficient to uniquely construct a Binary Search Tree. To construct Binary Search tree, we can get Inorder traversal by sorting the given Preorder or Postorder traversal. So we have the required two traversals and can construct the Binary Search Tree.

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!