Question DSA-HEAP-0047
MediumA max-heap has 15 elements. At which array indexes (0-indexed) can the minimum element be?
- A.
Only at index 0
- B.
Only at the leaves, indexes 7 to 14
- 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
A max-heap has 15 elements. At which array indexes (0-indexed) can the minimum element be?
Only at index 0
Only at the leaves, indexes 7 to 14
Sign up free to see the answer and a step-by-step explanation.
Only at index 14
Anywhere