You are viewing a single comment's thread. Return to all comments →
function permutationEquation(p) { // Write your code here var map = new Map(), ar = []; p.forEach((v,i) => map.set(v, i+1)) for(let i=1; i<=p.length; i++) ar.push( map.get ( map.get(i) )); return ar;
Seems like cookies are disabled on this browser, please enable them to open this website
Sequence Equation
You are viewing a single comment's thread. Return to all comments →