Which of the following traversal outputs the data in sorted order in a BST?
2025
Which of the following traversal outputs the data in sorted order in a BST?
Answer: B. Inorder — Explanation: Inorder traversal of a BST outputs data in sorted order.
- A.
Preorder
- B.
Inorder
- C.
Postorder
- D.
Level order
Attempted by 621 students.
Show answer & explanation
Correct answer: B
Explanation:
Inorder traversal of a BST outputs data in sorted order.
Loading lesson…