Question DSA-SORT-0049
MediumWhich sort is best for an array that is almost sorted, with a few elements out of place?
- A.
Selection sort
- B.
Quick sort with the first element as pivot
- 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
Which sort is best for an array that is almost sorted, with a few elements out of place?
Selection sort
Quick sort with the first element as pivot
Sign up free to see the answer and a step-by-step explanation.
Heap sort
Insertion sort