Type "permutations leetcode" into a search bar and there's usually one of two things going on. Either you've hit LeetCode 46, written a nested-loop mess, and watched it fall apart on the third element ...