In the balanced binary tree shown below, how many nodes will become unbalanced…

GATE · 1996 · CS · Question 1 subparts

In the balanced binary tree shown below, how many nodes will become unbalanced when a new node is inserted as a child of node g?

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

  1. A.

    1

  2. B.

    3

  3. C.

    7

  4. D.

    8

Attempted by 287 students.

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…