Question DSA-HEAP-0072
HardIn a min-heap of n distinct elements, where can the maximum be?
- A.
Among the leaves, the last ⌈n/2⌉ positions
- B.
Anywhere
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Heaps and Priority Queues question
In a min-heap of n distinct elements, where can the maximum be?
Among the leaves, the last ⌈n/2⌉ positions
Anywhere
Sign up free to see the answer and a step-by-step explanation.
At the root
At index 1