🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Sorting exam marks out of 100
  2. B.Sorting the letters of a word
  3. C.Sorting phone numbers up to 10¹⁰
  4. 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 →