Question DSA-BST-122
EasyHow is a leaf node deleted from a BST?
- A.
The whole tree is rebuilt
- B.
It is simply removed, and its parent's pointer set to null
- 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 leaf node deleted from a BST?
The whole tree is rebuilt
It is simply removed, and its parent's pointer set to null
Sign up free to see the answer and a step-by-step explanation.
It cannot be deleted
It is replaced by the root