Jump to content

Sorting algorithms/Permutation sort: Difference between revisions

m
m (→‎{{header|Ring}}: Remove vanity tags)
Line 828:
if length == 0 then []
else
. as $in | range(0;length) | . as $i
| range(0;length) as $i
| ($in|del(.[$i])|permutations)
| [$in[$i]] + .
2,471

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.