1.

After the insertion operation, is the resultant tree a splay tee?(a) true(b) falseMy question is taken from Splay Tree topic in portion Binary Trees of Data Structures & Algorithms IThis question was addressed to me in an online interview.

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.



Discussion

No Comment Found

Related InterviewSolutions