Tree Traversals Quiz 2

Placewit
Jun 18, 2021

--

Which traversal of tree resembles the breadth first search of the graph?

A. Preorder

B. Inorder

C. Postorder

D. Level order

Solution :

D) is correct.

Breadth first search visits all the neighbors first and then deepens into each neighbor one by one. The level order traversal of the tree also visits nodes on the current level and then goes to the next level.

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Placewit
Placewit

Written by Placewit

Upskilling students for tech placements!

No responses yet