Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -0,0 +1,19 @@
|
|||
dim a(0 to n-1) as integer
|
||||
'...more code...
|
||||
sort:
|
||||
i = 1
|
||||
j = 2
|
||||
|
||||
while(i < ubound(a) - lbound(a))
|
||||
if a(i-1) <= a(i) then
|
||||
i = j
|
||||
j = j + 1
|
||||
else
|
||||
swap a(i-1), a(i)
|
||||
i = i - 1
|
||||
if i = 0 then
|
||||
i = j
|
||||
j = j + 1
|
||||
end if
|
||||
end if
|
||||
wend
|
||||
Loading…
Add table
Add a link
Reference in a new issue