UGC NET CS 2014 Dec-Paper-2
October 12, 2023
Algorithms
October 12, 2023
UGC NET CS 2014 Dec-Paper-2
October 12, 2023
Algorithms
October 12, 2023

Algorithms

Question 2

Which one of the following binary trees has its inorder and preorder traversals as BCAD  and ABCD, respectively?

A
B
C
D
Question 2 Explanation: 
Inorder traversal is,
Left root right.
Preorder traversal is,
Root left right.
Correct Answer: D
Question 2 Explanation: 
Inorder traversal is,
Left root right.
Preorder traversal is,
Root left right.

Leave a Reply

Your email address will not be published. Required fields are marked *