1.

A full binary tree can be generated using ______(a) post-order and pre-order traversal(b) pre-order traversal(c) post-order traversal(d) in-order traversalThe origin of the question is Binary Trees in chapter Binary Trees of Data Structures & Algorithms IThe question was posed to me by my school principal while I was bunking the class.

Answer»

Right choice is (a) post-order and pre-order traversal

The explanation is: Every NODE in a full binary tree has either 0 or 2 children. A binary tree can be generated by TWO traversals if one of them is in-order. But, we can GENERATE a full binary tree USING post-order and pre-order traversals.



Discussion

No Comment Found

Related InterviewSolutions