GATE CS 2024, set 1 · Question 43 · Programming and Data Structures · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of k is
- (A) 53
- (B) 52
- (C) 27
- (D) 1
Answer
Answer (A)
Answer from the official GATE CS 2024 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes