+1 vote
in Data Structures & Algorithms I by (110k points)
After the insertion operation, is the resultant tree a splay tee?

(a) true

(b) false

My question is taken from Splay Tree topic in portion Binary Trees of Data Structures & Algorithms I

This question was addressed to me in an online interview.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right option is (a) true

Easiest explanation - There is a zig-zag and right operation(zig) which gives the right hand side tree. refer splay operations for insertion in splay tree.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.