1.

Which of the following traversing algorithm is not used to traverse in a tree?(a) Post order(b) Pre order(c) Post order(d) RandomizedQuestion is taken from Binary Trees using Linked Lists in division Binary Trees of Data Structures & Algorithms IThe question was posed to me in an interview for job.

Answer»

Right answer is (d) Randomized

To EXPLAIN: Generally, all nodes in a tree are visited by using PREORDER, inorder and postorder TRAVERSING algorithms.



Discussion

No Comment Found

Related InterviewSolutions