Lets say i have an array with 3 numbers:
[1,2,3]
I want to find all combinations of this 3 numbers where all the numbers are included.
Output should look like this:
[1,2,3], [1,3,2], [3,1,2], [3,2,1], [2,3,1], [2,1,3]
Lets say i have an array with 3 numbers:
[1,2,3]
I want to find all combinations of this 3 numbers where all the numbers are included.
Output should look like this:
[1,2,3], [1,3,2], [3,1,2], [3,2,1], [2,3,1], [2,1,3]