You are viewing a single comment's thread. Return to all comments →
Even easier:
int[] q = new int[p.length]; for(int i: p){ q[p[p[i-1]-1]-1] = i; } return q;
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
Even easier: