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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -