Iteratively generating a permutation of natural numbers

后端 未结 3 1387
梦毁少年i
梦毁少年i 2020-12-10 17:13

I have a somewhat unusual question, that may or may not have been asked before (I did not find anything though, however I might just have looked for the wrong buzzwords).

3条回答
  •  独厮守ぢ
    2020-12-10 17:58

    I think you are dealing with the rank of a permutation here. (I could be wrong). I have written a Rosetta code task on this; as well as answering other SO questions on this here and here.

    Is this of any use?

提交回复
热议问题