We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defpermutationEquation(p):# Write your code heretemp={value:index+1forindex,valueinenumerate(p)}result=[]forxinrange(1,len(p)+1):i=temp.get(x)j=temp.get(i)result.append(j)returnresult
Cookie support is required to access HackerRank
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 →