1.

What is the depth of the root node of K-ary tree?(a) 2(b) 1(c) 0(d) 3My question is taken from K-ary tree in section Trees of Data Structures & Algorithms IThe question was asked during an internship interview.

Answer»

Right option is (c) 0

The BEST I can explain: Depth is DEFINED as the length of the path from root to the node. So the depth of root node in K-ary tree is 0.



Discussion

No Comment Found

Related InterviewSolutions