Question DSA-SORT-0070
HardWhen is counting sort a bad idea?
- A.
When n is large
- B.
When stability is needed
- 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
When is counting sort a bad idea?
When n is large
When stability is needed
Sign up free to see the answer and a step-by-step explanation.
When keys are integers
When the range of keys k is much larger than n, such as sorting 10 numbers up to 10⁹