Question DSA-HEAP-0032
EasyIn a min-heap, what does sift-up do after an insert?
- A.
Removes the new element
- B.
Moves the root to the bottom
- 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 min-heap, what does sift-up do after an insert?
Removes the new element
Moves the root to the bottom
Sign up free to see the answer and a step-by-step explanation.
Doubles the array
Moves the new element up while it is smaller than its parent