Sorting algorithms/Counting sort: Difference between revisions

→‎{{header|Ada}}: Marked as incorrect because this is not the counting sort algorithm; seems like the requirements were misunderstood
(→‎version 2: Take care of empty list)
(→‎{{header|Ada}}: Marked as incorrect because this is not the counting sort algorithm; seems like the requirements were misunderstood)
Line 452:
 
=={{header|Ada}}==
{{incorrect|Ada}}
Given that we know the range of data, the problem really reduces to initializing the array to the ordered range of values. The input order is irrelevant.
<syntaxhighlight lang="ada">with Ada.Text_Io; use Ada.Text_Io;
44

edits