Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
arr := Array([17,0,-1,72,0]):
|
||||
len := numelems(arr):
|
||||
P := Iterator:-Permute(len):
|
||||
for p in P do
|
||||
lst:= convert(arr[sort(convert(p,list),output=permutation)],list):
|
||||
if (ListTools:-Sorted(lst)) then
|
||||
print(lst):
|
||||
break:
|
||||
end if:
|
||||
end do:
|
||||
Loading…
Add table
Add a link
Reference in a new issue