1.

The figure shown below is a balanced binary tree. If node P is deleted, which of the following nodes will get unbalanced?(a) U(b) M(c) H(d) AMy doubt is from Binary Trees in section Binary Trees of Data Structures & Algorithms II have been asked this question in a job interview.

Answer»

The correct choice is (a) U

The best explanation: Node U will get unbalanced if node P is DELETED, because it’s balance factor will BECOME -2.



Discussion

No Comment Found

Related InterviewSolutions