1.

What is the Height of the root node of ternary tree?(a) 1(b) 2(c) 3(d) 0My question is from 1 topic in portion Trees of Data Structures & Algorithms IThe question was asked during an internship interview.

Answer»

Right CHOICE is (d) 0

The best EXPLANATION: Height of TERNARY tree is defined as the length of path from ROOT to deepest node in tree. Therefore, height off root node in ternary tree is 0.



Discussion

No Comment Found

Related InterviewSolutions