You are viewing a single comment's thread. Return to all comments →
Here's my easiest javascript solution :)
let result=Array.from({ length: p.length }); let positionVal; p.forEach((elem,index)=>{ positionVal=(p.indexOf(index+1))+1; result[elem-1]=positionVal }) return result;
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 →
Here's my easiest javascript solution :)