+1 vote
in Data Structures & Algorithms I by (110k points)
Is parent node of Node 4 and root node of the given K-ary tree same?

(a) True

(b) False

This is a very interesting question from K-ary tree topic in chapter Trees of Data Structures & Algorithms I

I got this question in an online interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct answer is (a) True

Easy explanation - Since Root node of the ternary tree is Node 1 and also Node 1 has three children that is Node 2, Node 3, Node 4. So parent node of Node 4 and the root node of the ternary tree are same.

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

...