Digital-Logic-Design
October 16, 2023
Digital-Logic-Design
October 16, 2023
Digital-Logic-Design
October 16, 2023
Digital-Logic-Design
October 16, 2023

Data-Structures

Question 269
Consider the following binary search tree T given below:

Which node contains the fourth smallest element in T?

A
Q
B
V
C
W
D
X
Question 269 Explanation: 
In-order traversal of binary search tree gives the ascending order of the elements.
The in-order traversal of the above tree is UQXWPVZY
So the fourth smallest element is 4th element of the inorder which is W
Correct Answer: C
Question 269 Explanation: 
In-order traversal of binary search tree gives the ascending order of the elements.
The in-order traversal of the above tree is UQXWPVZY
So the fourth smallest element is 4th element of the inorder which is W

Leave a Reply

Your email address will not be published. Required fields are marked *