1.

What is the size of the given ternary tree?(a) 3(b) 2(c) 6(d) 4I'm obligated to ask this question of Ternary Tree topic in chapter Trees of Data Structures & Algorithms IThis question was addressed to me by my college director while I was bunking the class.

Answer»

The CORRECT choice is (c) 6

Explanation: Size of the ternary TREE is defined as the total number of NODES PRESENT in the tree. Since there are total of 6 nodes in the ternary tree. So the size of the ternary tree is 6.



Discussion

No Comment Found

Related InterviewSolutions