0 0 votes Suppose a binary search tree has been constructed from the following sequence of numbers in the order in which they arrive : $6, 2, 10, 1, 5, 7, 11, 3, 9, 4, 8.$ Consider the following piece of code : Show(root) $ \{ \text { if (root != NULL)}$ $\qquad \quad \{ \text{printf}( “ \% d”, \text{root} \rightarrow \text{key)};$ $\qquad \qquad$ show $\text{(root} \rightarrow \text{right)};$ $\qquad \qquad$ show $\text{(root} \rightarrow \text{left)};$ $\qquad \qquad$ } $\qquad \quad$ else return ; $\qquad$ } The sequence printed will be : $6, 11, 10, 7, 8, 9, 2, 4, 3, 5, 1$ $6, 11, 7, 9, 8, 10, 2, 5, 1, 3, 4$ $6, 10, 11, 7, 9, 8, 2, 5, 3, 4, 1$ $6, 10, 2, 11, 7, 9, 8, 5, 3, 4, 1$ Data Structures nielit2021dec-scientista binary-search-tree tree binary-tree data-structures programming-in-c + – soujanyareddy13 1.0k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote TRAVERSAL : 6 10 11 7 9 8 2 5 4 3 1 zoomcreater answered May 15, 2025 zoomcreater comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes answer is C first construct tree and then apply this code amitpanwar013 answered Jul 2, 2022 amitpanwar013 comment Share Follow 0 reply Please log in or register to add a comment.