1.

Which of the following pair’s traversals on a binary tree can build the tree uniquely?(a) post-order and pre-order(b) post-order and in-order(c) post-order and level order(d) level order and preorderThe query is from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms IThe question was asked in class test.

Answer»

Right answer is (B) post-order and in-order

Best EXPLANATION: A binary tree can uniquely be CREATED by post-order and in-order traversals.



Discussion

No Comment Found

Related InterviewSolutions