1.

Is parent node of Node 4 and root node of the given K-ary tree same?(a) True(b) FalseThis is a very interesting question from K-ary tree topic in chapter Trees of Data Structures & Algorithms II got this question in an online interview.

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.



Discussion

No Comment Found

Related InterviewSolutions