Which traversal of a binary tree results in sorted order for a Binary Search Tree?
17 views
- Preorder
- Postorder
- Inorder (Correct Answer)
- Level order
Explanation
Inorder traversal visits nodes in left-root-right order. For a BST, this guarantees visiting nodes in ascending sorted order due to the BST property where left subtree values are smaller and right subtree values are larger.