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,19 @@
|
|||
aList = [7,6,5,9,8,4,3,1,2,0]
|
||||
see sortList(aList)
|
||||
|
||||
func sortList list
|
||||
count = len(list) + 1
|
||||
last = count - 1
|
||||
|
||||
for i = 1 to last
|
||||
minCandidate = i
|
||||
j = i + 1
|
||||
while j < count
|
||||
if list[j] < list[minCandidate] minCandidate = j ok
|
||||
j = j + 1
|
||||
end
|
||||
temp = list[i]
|
||||
list[i] = list[minCandidate]
|
||||
list[minCandidate] = temp
|
||||
next
|
||||
return list
|
||||
Loading…
Add table
Add a link
Reference in a new issue