June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 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