Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
function beadsort(sequence a)
|
||||
sequence poles = repeat(0,max(a))
|
||||
for i=1 to length(a) do
|
||||
poles[1..a[i]] = sq_add(poles[1..a[i]],1)
|
||||
end for
|
||||
a[1..$] = 0
|
||||
for i=1 to length(poles) do
|
||||
a[1..poles[i]] = sq_add(a[1..poles[i]],1)
|
||||
end for
|
||||
return a
|
||||
end function
|
||||
|
||||
?beadsort({5, 3, 1, 7, 4, 1, 1, 20})
|
||||
Loading…
Add table
Add a link
Reference in a new issue