You are viewing a single comment's thread. Return to all comments →
c# version
public static List<int> permutationEquation(List<int> p) { var rs = new List<int>(); for(int x = 1, n = p.Count; x <= n; x++) { int y = p.IndexOf(x) + 1; rs.Add(p.IndexOf(y) + 1); } return rs; }
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 →
c# version