How do I get all n! combinations of possible lists that can be created from numbers 1 to n?
How do I get all n! combinations of possible lists that can be created from numbers 1 to n? Question: It’s kind of difficult to explain, so let me give an example: For n=3, I want to make all lists: [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] …