Examveda

In an AVL tree, what happens when a node's balance factor becomes +2 due to an insertion in the right subtree of the right child?

A. A left-right rotation is performed.

B. A single left rotation is performed.

C. A right-left rotation is performed.

D. A left-right rotation is performed.

Answer: Option B


Join The Discussion

Related Questions on Advanced Trees (AVL, RedBlack, BTrees)