Question DSA-SORT-0055
MediumWhat does heap sort do first?
- A.
Merges pairs of elements
- B.
Sorts the first half
- 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
Sorting question
What does heap sort do first?
Merges pairs of elements
Sorts the first half
Sign up free to see the answer and a step-by-step explanation.
Builds a max-heap from the array
Picks a random pivot