K
K
katavagner2015-10-18 09:09:28
PHP
katavagner, 2015-10-18 09:09:28

How to make all unique sequences from one dimensional array?

There is an array: (1, 2, 3), you need to get all unique sequences, while all elements of the array must be involved, for example:

123
132
213
231
312
321

The array can be of any size. If the array, for example, is: (1, 2, 3, 4), then the result is:
1234
1243
...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2015-10-18
@katavagner

docstore.mik.ua/orelly/webprog/pcook/ch04_26.htm

R
Rsa97, 2015-10-18
@Rsa97

Combinatorics, permutations .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question