1.

Which node is the parent node of Node 6?(a) 1(b) 5(c) 2(d) 3My question comes from 1 in section Trees of Data Structures & Algorithms IThis question was addressed to me during an interview.

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.



Discussion

No Comment Found

Related InterviewSolutions