Who is the ancestor of Node H?

Category: QuestionsWho is the ancestor of Node H?
Editor">Editor Staff asked 1 month ago

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

1 Answers
Editor">Editor Staff answered 1 month ago

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.