Question DSA-HEAP-0040
EasyA max-heap is stored as [9, 7, 8, 3, 5]. After the maximum (9) is removed, which value is at the root?
- A.
3
- B.
5
- 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 is stored as [9, 7, 8, 3, 5]. After the maximum (9) is removed, which value is at the root?
3
5
Sign up free to see the answer and a step-by-step explanation.
8
7