Permutations/Rank of a permutation: Difference between revisions

Content added Content deleted
No edit summary
Line 1,553: Line 1,553:
pos -= 1
pos -= 1
if pos <= 0 permutationReverse(a, 1, elementcount)
if pos <= 0 permutationReverse(a, 1, elementcount)
return ok
return
ok
end
end
last = elementcount
last = elementcount