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