GATE | GATE CS 1996 | Question 14

In the balanced binary tree in the below figure, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?

         a
       /   \
      b     e
     / \   /
    c  d  f
   /
  g

(A) 1
(B) 3
(C) 7
(D) 8


Answer: (B)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.