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.
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
Join The Discussion