Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
16
Task/JortSort/EasyLang/jortsort.easy
Normal file
16
Task/JortSort/EasyLang/jortsort.easy
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
proc sort . d[] .
|
||||
for i = 1 to len d[] - 1
|
||||
for j = i + 1 to len d[]
|
||||
if d[j] < d[i]
|
||||
swap d[j] d[i]
|
||||
.
|
||||
.
|
||||
.
|
||||
.
|
||||
func jortsort arr[] .
|
||||
orig[] = arr[]
|
||||
sort arr[]
|
||||
return if orig[] = arr[]
|
||||
.
|
||||
print jortsort [ 2 4 6 ]
|
||||
print jortsort [ 4 2 6 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue