Question DSA-HEAP-0031
EasyIn a heap, what does sift-down (heapify-down) do?
- A.
Deletes the lowest element
- B.
Adds a new leaf
- 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 heap, what does sift-down (heapify-down) do?
Deletes the lowest element
Adds a new leaf
Sign up free to see the answer and a step-by-step explanation.
Moves an element down, swapping with a child, until the heap property holds
Sorts the whole array