You are viewing a single comment's thread. Return to all comments →
For Python lovers ...in O(n) time
def permutationEquation(p): return [(p.index(p.index(i)+1)+1) for i in range(1, max(p)+1)]
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 →
For Python lovers ...in O(n) time