Which of the following operations are used by Red-Black trees to maintain balance during insertion/deletion? a) Recoloring of nodes b) Rotation (Left and Right)
(A) Only a
(B) Only b
(C) Both a and b
(D) Neither a nor b
Answer: (C)
Explanation:
Both recoloring and rotation operations are used during insertion and deletion.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!