1.

Who is the ancestor of Node H?(a) D(b) F(c) H(d) AQuery is from K-ary Tree in section Trees of Data Structures & Algorithms IThis question was addressed to me during an internship interview.

Answer»

The correct OPTION is (a) D

The best explanation: Ancestor NODE is a node that comes in between the PATH from the node to the root. Since Node D comes between node H and root, so Node D is called the ancestor node.



Discussion

No Comment Found

Related InterviewSolutions