Open In App

UGC-NET | UGC NET CS 2016 July – III | Question 35

Suppose that we have numbers between 1 and 1,000 in a binary search tree and want to search for the number 364. Which of the following sequences could not be the sequence of nodes examined ?
(A) 925, 221, 912, 245, 899, 259, 363, 364
(B) 3, 400, 388, 220, 267, 383, 382, 279, 364
(C) 926, 203, 912, 241, 913, 246, 364
(D) 3, 253, 402, 399, 331, 345, 398, 364

Answer: (C)
Explanation: We have to find 364 in BST:

So, option (C) is correct.
Quiz of this Question

Article Tags :