Q1. In a binary search tree, a node z with two children is deleted by replacing its key with its inorder successor's key and then deleting that successor node. Which property makes the second deletion simpler than deleting z directly?
Explanation
The inorder successor of a two-child node is the smallest key in its right subtree. By definition, that node cannot have a left child, because any left child would contain an even smaller key still greater than z. Therefore after copying the successor's key into z, the actual node removed has at most one child, reducing the deletion to a simpler splice operation.
