Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/JortSort/Maple/jortsort.maple
Normal file
9
Task/JortSort/Maple/jortsort.maple
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
jortSort := proc(arr)
|
||||
local copy:
|
||||
copy := sort(Array([seq(arr[i], i=1..numelems(arr))])):
|
||||
return ArrayTools:-IsEqual(copy,arr):
|
||||
end proc:
|
||||
#Examples
|
||||
jortSort(Array([5,6,7,2,1]));
|
||||
jortSort(Array([-5,0,7,12,21]));
|
||||
jortSort(Array(StringTools:-Explode("abcdefg")));
|
||||
Loading…
Add table
Add a link
Reference in a new issue