Question DSA-SORT-0056
MediumWhich algorithm sorts n integers in the range 0 to k in O(n + k)?
- A.
Merge sort
- B.
Heap sort
- 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 algorithm sorts n integers in the range 0 to k in O(n + k)?
Merge sort
Heap sort
Sign up free to see the answer and a step-by-step explanation.
Counting sort
Shell sort