1.

What is the traversal strategy used in the binary tree?(a) depth-first traversal(b) breadth-first traversal(c) random traversal(d) Priority traversalAsked question is from Binary Trees topic in section Binary Trees of Data Structures & Algorithms IThe question was posed to me by my college professor while I was bunking the class.

Answer»

Correct answer is (b) breadth-first TRAVERSAL

For explanation: Breadth first traversal, ALSO known as LEVEL order traversal is the traversal strategy used in a binary tree. It INVOLVES visiting all the nodes at a GIVEN level.



Discussion

No Comment Found

Related InterviewSolutions