Rank and unrank DI-UnicyclePermutations

前端 未结 0 874
小蘑菇
小蘑菇 2021-02-02 08:29

I want to rank and unrank permutations 1...n (size=n) which have following 2 constraints:

  • The permutation has just one cycle. Example: 2341

相关标签:
回答
  • 消灭零回复
提交回复
热议问题