GATE CS 2018 · Arrays & Matrix Representation

NAT · 1 mark · Problem PROG-DSTR-0116

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 .

Numerical answer (NAT).

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: [4.0, 4.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/204094/gate2018-20

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com