Computer scienceAlgorithms and data structuresAlgorithmsArray algorithmsSorting algorithms

Counting sort

Number of comparisons

Report a typo

Suppose you have an array like this: {1,5,6,7,2,1,2,3,5}\{1, 5, 6, 7, 2, 1, 2, 3, 5\}.

How many comparisons should we make to sort the array using counting sort?

Enter a number

Create a free account to access the full topic