+1 vote
in Data Structures & Algorithms I by (110k points)
Which node is the parent node of Node 6?

(a) 1

(b) 5

(c) 2

(d) 3

My question comes from 1 in section Trees of Data Structures & Algorithms I

This question was addressed to me during an interview.

1 Answer

+1 vote
by (737k points)
selected by
Best answer
The correct option is (c) 2

Easiest explanation - Since Node 2 has two children Node 5 and Node 6, So Node 2 is the parent node of Node 6. While Node 1 is root node and Node 3 and Node 5 are Leaf node.

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.