1.

In the given figure, find ‘?’.(a) left rotation(b) right rotation(c) insertion(d) deletionThe origin of the question is Binary Trees topic in section Binary Trees of Data Structures & Algorithms IThe question was posed to me during an internship interview.

Answer»

The correct option is (B) RIGHT rotation

Easiest explanation - B is INITIALLY the right child of X. It is then ROTATED right side and now, B is the left child of P.



Discussion

No Comment Found

Related InterviewSolutions