GATE CS 2025 · Set 2 · Trees

NAT · 1 mark · Problem PROG-DSTR-0064

Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let \(T\) be the resulting binary search tree. The number of edges in the path from the node containing 19 to the root node of \(T\) is . (Answer in integer)

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/460810/gate-cse-2025-set-2-question-25

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