all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
sub swap( byref a, byref b)
|
||||
dim tmp
|
||||
tmp = a
|
||||
a = b
|
||||
b = tmp
|
||||
end sub
|
||||
|
||||
function selectionSort (a)
|
||||
for i = 0 to ubound(a)
|
||||
k = i
|
||||
for j=i+1 to ubound(a)
|
||||
if a(j) < a(i) then
|
||||
swap a(i), a(j)
|
||||
end if
|
||||
next
|
||||
next
|
||||
selectionSort = a
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue