Permutations/Rank of a permutation: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 1,553:
pos -= 1
if pos <= 0 permutationReverse(a, 1, elementcount)
return
ok
end
last = elementcount
|