Android Utililty Methods Array Permutate

List of utility methods to do Array Permutate


The list of methods to do Array Permutate are organized into topic(s).


int[]identityPermutation(final int n)
Creates and fills an array with a[i] = i.
final int[] a = new int[n];
return a;
voididentityPermutation(final int[] a)
Fills the given array with a[i] = i.
for (int i = a.length - 1; i >= 0; --i) {
    a[i] = i;