Question DSA-HEAP-0066
HardRemoving the maximum from the max-heap [90, 70, 85, 30, 60, 50, 80] gives:
- A.
[85, 70, 80, 30, 60, 50]
- B.
[80, 70, 85, 30, 60, 50]
- 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
Removing the maximum from the max-heap [90, 70, 85, 30, 60, 50, 80] gives:
[85, 70, 80, 30, 60, 50]
[80, 70, 85, 30, 60, 50]
Sign up free to see the answer and a step-by-step explanation.
[70, 85, 80, 30, 60, 50]
[85, 70, 50, 30, 60, 80]