Animating the Steinhaus-Johnson-Trotter Permutation Generation Algorithm
📝
内容提要
One way to generate permutations of 1 - n from 1 - (n-1) is adding n in a cyclic manner.
🏷️
标签
➡️