Skip to content
Related Articles

Related Articles

Improve Article

GATE | GATE CS 1997 | Question 30

  • Last Updated : 16 Oct, 2017

A binary search tree contains the values 1, 2, 3, 4, 5, 6, 7, 8. The tree is traversed in pre-order and the values are printed out. Which of the following sequences is a valid output?
(A) 53124786
(B) 53126487
(C) 53241678
(D) 53124768


Answer: (D)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :