+1 vote
in Data Structures & Algorithms I by (110k points)
What is the Height of the root node of ternary tree?

(a) 1

(b) 2

(c) 3

(d) 0

My question is from 1 topic in portion Trees of Data Structures & Algorithms I

The question was asked during an internship interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...