Question DSA-BST-121
EasyThe values 50, 30, 70, 20, 40 are inserted in that order into an empty binary search tree. What is the inorder successor of 30?
- A.
70
- B.
20
- C.
50
- D.
40
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
The values 50, 30, 70, 20, 40 are inserted in that order into an empty binary search tree. What is the inorder successor of 30?
70
20
50
40
Sign up free to see the answer and a step-by-step explanation.