阅读背景:

寻找数字排列的算法。

来源:互联网 

I am looking for an algorithm that given a set of numbers (for example 1 2 3) and an index (for example 2) will get me the second permutation of those numbers according to a lexicographic order. For example in this case the algorithm will return 1 3 2.I am looking for an algorithm that given a set




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: