Question DSA-BST-143
MediumWhich preorder sequence could be from a BST?
- A.
10, 40, 5, 50, 1, 7
- B.
10, 50, 5, 40, 1, 7
- 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
Which preorder sequence could be from a BST?
10, 40, 5, 50, 1, 7
10, 50, 5, 40, 1, 7
Sign up free to see the answer and a step-by-step explanation.
10, 5, 40, 1, 7, 50
10, 5, 1, 7, 40, 50