The Lehmer code and the factorial number system for ranking and unranking permutations, in pure Python with zero dependencies: encode a permutation to its inversion vector and back, convert integers ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results