Vidyalelo
Data Structure · Q54

Binary Search Trees(B Tree)

Programming · Data Structure · question 54

Q54

What output does the below pseudo code produces? Tree_node function(Tree_node x) Tree_node y = x.left; x.left = y.right; y.right = x; return y;

A.
right rotation of subtree
Answer
B.
left rotation of subtree
C.
zig-zag operation
D.
zig-zig operation

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board