permutation of array

Posted by davit-datuashvili on Stack Overflow See other posts from Stack Overflow or by davit-datuashvili
Published on 2010-05-27T10:32:19Z Indexed on 2010/05/27 10:41 UTC
Read the original article Hit count: 203

Filed under:

for example i have array

int a[]=new int[]{3,4,6,2,1};

I need list of all permutation such that if one is like this, {3,2,1,4,6}, others must not be the same i know that if length of array=n then there is n! possible combination please help me to write this algortihm what to do?

© Stack Overflow or respective owner

Related posts about algorithm