c - If you are given two traversal sequences, can you construct the binary tree? -


what combination of preorder,inorder , postorder traversal generate unique binary tree?

following combination can uniquely identify tree.

inorder , preorder. inorder , postorder. inorder , level-order.

and following not. postorder , preorder. preorder , level-order. postorder , level-order.

for more infomation refer:geeksforgeek


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -