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

(a) 1

(b) 2

(c) 3

(d) 0

Asked question is from K-ary tree in division Trees of Data Structures & Algorithms I

I have been asked this question in semester exam.

1 Answer

+1 vote
by (737k points)
selected by
Best answer
Correct option is (d) 0

For explanation: Height of K-ary tree is defined as the length of path from root to deepest node in tree. Therefore, height of root node in K-ary 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.