@ Navneet: See if the tree is: 6
4 7
3 5 8
Then the preorder traversal is : 6 4 3 5 7 8
And using this preorder traversal and inserting them in the tree one by one,
we generate this exact tree.
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.