Question DSA-BST-161
HardWhich sequence could be the preorder traversal of a BST?
- A.
30, 40, 20, 50, 10
- B.
30, 20, 10, 25, 40, 35, 50
- 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 sequence could be the preorder traversal of a BST?
30, 40, 20, 50, 10
30, 20, 10, 25, 40, 35, 50
Sign up free to see the answer and a step-by-step explanation.
30, 20, 25, 10, 40
30, 20, 40, 10, 25, 35, 50