Sorting algorithms/Counting sort: Difference between revisions
Sorting algorithms/Counting sort (view source)
Revision as of 15:41, 7 September 2023
, 8 months ago→{{header|Ada}}: Marked as incorrect because this is not the counting sort algorithm; seems like the requirements were misunderstood
Walterpachl (talk | contribs) (→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;
|