0 votes 0 votes How to generate post order array from given in order array [8,6,9,4,7,2,5] ? Programming in C binary-tree data-structures + – raman.pndy asked May 14, 2018 raman.pndy 471 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply srestha commented May 14, 2018 reply Follow Share is it BST or only binary tree? 0 votes 0 votes raman.pndy commented May 14, 2018 reply Follow Share it's binary tree. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes For construction of unique binary tree we should have either inorder and postorder or inorder and preorder and in this question only inorder is given so multiple binary tree are possible ,some of them given below Prateek Raghuvanshi answered May 14, 2018 • edited May 14, 2018 by Prateek Raghuvanshi Prateek Raghuvanshi comment Share Follow See all 3 Comments See all 3 3 Comments reply raman.pndy commented May 14, 2018 reply Follow Share Hi Prateek, given array [8,6,9,4,7,2,5] is already in inorder format, so to generate the binary tree from inorder array, i need to do level order traversal to construct equivalent binary tree ?? i'm curious to know about the ways to generate post order array of a binary tree if it's inorder array is already given. 0 votes 0 votes Prateek Raghuvanshi commented May 14, 2018 i edited by Prateek Raghuvanshi May 14, 2018 reply Follow Share Srry I didn't read question well,i corrected my answer 0 votes 0 votes raman.pndy commented May 14, 2018 reply Follow Share Hi Prateek, Thanks for your answer. can you please tell me the logic to create the second binary tree as per your answer? 0 votes 0 votes Please log in or register to add a comment.