Question DSA-SORT-0075
HardWhat is a stable sort's key advantage when sorting by several keys?
- A.
It needs no comparisons
- B.
It is always faster
- 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 is a stable sort's key advantage when sorting by several keys?
It needs no comparisons
It is always faster
Sign up free to see the answer and a step-by-step explanation.
It uses less memory
You can sort by the secondary key first, then the primary key, and keep ties in the right order