Getting the ith permutation of a list

前端 未结 0 1950
忘了有多久
忘了有多久 2021-01-29 13:25

I need a fortran code that calculates the ith permutation of a given list {1,2,3,...,n}, without computing all the permutations, that are n!. Is there anyone that can help me? T

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