List of utility methods to do Array Permutate
int[] | identityPermutation(final int n) Creates and fills an array with a[i] = i. final int[] a = new int[n]; identityPermutation(a); return a; |
void | identityPermutation(final int[] a) Fills the given array with a[i] = i. for (int i = a.length - 1; i >= 0; --i) { a[i] = i; |