1.

What operation does the following diagram depict?(a) inserting a leaf node(b) inserting an internal node(c) deleting a node with 0 or 1 child(d) deleting a node with 2 childrenThis interesting question is from Binary Trees in section Binary Trees of Data Structures & Algorithms IThe question was asked during an internship interview.

Answer»

The CORRECT choice is (C) deleting a node with 0 or 1 CHILD

The best EXPLANATION: The above DIAGRAM is a depiction of deleting a node with 0 or 1 child since the node D which has 1 child is deleted.



Discussion

No Comment Found

Related InterviewSolutions