3 ms·Java code for Permutation using Steinhaus–Johnson–Trotter algorithm2 points by javinpaul 13y ago