Question DSA-HEAP-0014
MediumWhich heap operation is used to remove the root?
- A.
Delete the root and leave a gap
- B.
Remove the last element
- 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
Which heap operation is used to remove the root?
Delete the root and leave a gap
Remove the last element
Sign up free to see the answer and a step-by-step explanation.
Rebuild the heap from scratch
Move the last element to the root and sift it down