Pre-order : Root - Left Child - Right Child In-order : Left Child - Root - Right Childpre order :13245786in order : 12345678 1.Pre-order first element will be root node. make the node of tree. 2.Now scan that node in in-order to its left will be its left child to its right it will be right child 3.Repeat step 1. Here 1.1 is root node of tree and it has no left child. 2.Now next node will be 3 to right of 1 and 3 right child is 2 and left child are 45678 Similarly make the tree.
64.3k questions
77.9k answers
244k comments
80.0k users