Guest_imported
New member
- Jan 1, 1970
- 0
how would you create a fuction that outputs all the posible combinations of a series of characters
eg.
list of chars = 1, 2, 3
output=
1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1
eg.
list of chars = 1, 2, 3
output=
1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1