Gate CS-2018 Question Paper With Solutions

Q. 20 The postorder traversal of a binary tree is 8, 9, 6, 7, 4, 5, 2, 3, 1. The inorder traversal of the same tree is 8, 6, 9, 4, 7, 2, 5, 1, 3. The height of a tree is the length of the longest path from the root to any leaf. The height of the binary tree above is ________.

Note –This was Numerical Type question.

(A) 2

(B) 3

(C) 4

(D) 5

Answer: (C)

Explanation:

Gate CS-2018 Question Paper With Solutions

Learn More:   Gate ME-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here