Pick the tree after a delete
Warm-up · Multiple choice · about 3 min
Delete 6 from the BST with level order [8, 3, 10, 1, 6, null, 14, null, null, 4, 7], using its in-order successor. Pick the resulting tree.
Learn the idea first: BST delete; successor and predecessor, a visual lesson.
More BST delete; successor and predecessor problems
- Delete a node with two children Standard
- Implement delete Standard
- Successor Standard
- Spot the bug: lost subtree Standard
- Delete with the predecessor instead Challenge