Permutations/Rank of a permutation: Difference between revisions
Permutations/Rank of a permutation (view source)
Revision as of 17:50, 21 October 2017
, 6 years ago→{{header|Ring}}
No edit summary |
|||
Line 1,553:
pos -= 1
if pos <= 0 permutationReverse(a, 1, elementcount)
return
ok
end
last = elementcount
|