Sorting algorithms/Counting sort: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
|||
Line 1,360: | Line 1,360: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight |
<syntaxhighlight> |
||
proc countsort min max . d[] . |
proc countsort min max . d[] . |
||
len count[] max - min + 1 |
len count[] max - min + 1 |
||
Line 1,376: | Line 1,376: | ||
. |
. |
||
for i = 1 to 100 |
for i = 1 to 100 |
||
d[] &= |
d[] &= randint 1000 |
||
. |
. |
||
countsort 1 1000 d[] |
countsort 1 1000 d[] |