Tree Traversals Quiz 3

Placewit
Jun 19, 2021

--

Which of the following cannot generate the full binary tree?

A. Inorder and Preorder

B. Inorder and Postorder

C. Preorder and Postorder

D. None of the above

Solution :

D) is correct.

To generate a binary tree, two traversals are necessary and one of them must be inorder. But, a full binary tree can be generated from preorder and postorder traversals.

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