Tree Data Structures questions

Q20

GATE CS 2018 CSTree Data StructuresNAT1 mark
The postorder traversal of a binary tree is 8,9,6,7,4,5,2,3,18,9,6,7,4,5,2,3,1. The inorder traversal of the same tree is 8,6,9,4,7,2,5,1,38,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 ______.
Show answer without attempting

Answer: 4

Q46

GATE CS 2018 CSTree Data StructuresNAT2 marks
The number of possible min-heaps containing each value from {1,2,3,4,5,6,7}\{1, 2, 3, 4, 5, 6, 7\} exactly once is _____.
Show answer without attempting

Answer: 80

0/20 correct0 marks

Related topics in Programming and Data Structures