1.

Figure below is a balanced binary tree. If a node inserted as child of the node R, how many nodes will become unbalanced?(a) 2(b) 1(c) 3(d) 0The origin of the question is Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms IThis question was addressed to me by my college director while I was bunking the class.

Answer»

Right OPTION is (b) 1

To explain: Only the node P will become unbalanced, with BALANCE FACTOR +2.



Discussion

No Comment Found

Related InterviewSolutions