Question DSA-BST-0008
MediumWhen a node with two children is deleted from a BST, what replaces it?
- A.
Its parent
- B.
Its left child always
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Binary Search Trees question
When a node with two children is deleted from a BST, what replaces it?
Its parent
Its left child always
Sign up free to see the answer and a step-by-step explanation.
Its inorder successor (or inorder predecessor)
The root