Question DSA-BST-123
EasyHow is a node with exactly one child deleted from a BST?
- A.
Its child takes its place
- B.
It is replaced by the root
- 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
How is a node with exactly one child deleted from a BST?
Its child takes its place
It is replaced by the root
Sign up free to see the answer and a step-by-step explanation.
It can't be deleted
Both it and its child are deleted