GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2022

GATE 2022 · CS · NAT · 1 mark · Programming and Data Structures › Binary Search Trees

GATE 2022 Computer Science and Information Technology question: Suppose a binary search tree with 1000 distinct elements is also a complete binary tree.…

Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index __________.

Show answer

Official answer: 509

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion