Question DSA-SORT-0066
HardWhat is the minimum number of comparisons any comparison sort needs in the worst case for 5 elements?
- A.
10
- B.
5
- C.
8
- D.
7
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 the minimum number of comparisons any comparison sort needs in the worst case for 5 elements?
10
5
8
7
Sign up free to see the answer and a step-by-step explanation.