Vidyalelo
Data Structure · Q34

Binary Search Trees(B Tree)

Programming · Data Structure · question 34

Q34

When deleting a node from a BST, what should you do if the node to be deleted has two children?

A.
Replace it with its inorder successor or predecessor, then remove the successor or predecessor.
Answer
B.
Directly remove the node and replace it with its left child.
C.
Directly remove the node and replace it with its right child.
D.
Replace it with its left child.

Answer: Option A

Solution

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