In binary tree sort, we first construct the BST and then we perform _______ traversal to get the sorted order.

In binary tree sort, we first construct the BST and then we perform _______ traversal to get the sorted order.
A. inorder
B. postorder
C. preorder
D. level order
 
Answer: a
Explanation: In binary tree sort is a sort algorithm where a binary search tree is built from the elements to be sorted, and then we perform inorder traversal on the BST to get the elements in sorted order.
 

Tìm kiếm

Back
Top