You are viewing a single comment's thread. Return to all comments →
My Javascript (nodejs) solution:
let y = []; p.forEach((item, i) => y[i] = p.indexOf(p.indexOf(i+1) + 1) + 1); return y;
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
My Javascript (nodejs) solution: