Android Utililty Methods Array Permutate

List of utility methods to do Array Permutate

Description

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

Method

int[]identityPermutation(final int n)
Creates and fills an array with a[i] = i.
final int[] a = new int[n];
identityPermutation(a);
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;