← Quiz: Counting Sort and Custom Sorting: all 13 questions
Quiz: Counting Sort and Custom Sorting · Question 3 of 13
When is counting sort a BAD idea?
When is counting sort a BAD idea?
- A.Sorting exam marks out of 100
- B.Sorting the letters of a word
- C.Sorting phone numbers up to 10¹⁰
- D.Sorting ages of people
Answer & explanation
Correct answer: Sorting phone numbers up to 10¹⁰
The count array would need 10¹⁰ cells — far more memory than the data itself.
Can you get the rest right without peeking?
Take the timed Quiz: Counting Sort and Custom Sorting quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →