Data Structures | Binary Search Trees | Question 5

Which of the following traversal outputs the data in sorted order in a BST?
(A) Preorder
(B) Inorder
(C) Postorder
(D) Level order

Answer: (B)

Explanation: Inorder traversal of a BST outputs data in sorted order. Read here for details.

GATE CS Corner    Company Wise Coding Practice

Recommended Posts:

0 Average Difficulty : 0/5.0
No votes yet.