Anonymous user
Sorting algorithms/Counting sort: Difference between revisions
m
→{{header|Eiffel}}
(→{{header|Ruby}}: used concat) |
|||
Line 493:
--- Is 'ar' sorted in ascending order?
require
ar_not_empty: ar.is_empty =
local
i: INTEGER
do
Result :=
from
i := ar.lower
Line 504:
loop
if ar [i] > ar [i + 1] then
end
i := i + 1
Line 511:
end
</lang>
TEST:
|