ParentFull threadsteppi·Yes, checkout the Steinhaus-Johnson-Trotter algorithm [0].[0] https://en.m.wikipedia.org/wiki/Steinhaus%E2%80%93Johnson%E2...View on HN