next permutation algorithm Posted on 2016-08-09 | In algorithm | 0 Comments reference https://www.nayuki.io/page/next-lexicographical-permutation-algorithm