1.

How many extra nodes are there in Full ternary tree than a complete ternary tree?(a) 1(b) 2(c) 3(d) Both have same number of nodesThis interesting question is from Ternary Tree in division Trees of Data Structures & Algorithms II had been asked this question in an online interview.

Answer» RIGHT answer is (d) Both have same NUMBER of nodes

The explanation is: EVERY Full ternary tree is ALSO a complete ternary tree. THEREFORE, both have same number of nodes.


Discussion

No Comment Found

Related InterviewSolutions