You are viewing a single comment's thread. Return to all comments →
It seems understanding if I stick to use dictionary in python. Otherwise use of arrays is fine for C and Java.
x = int(input()) y = list(map(int, input().strip().split())) d = {} for i in y: d[y.index(i) + 1] = i for key in d: print (d[d[key]])
Security Permutations
You are viewing a single comment's thread. Return to all comments →
It seems understanding if I stick to use dictionary in python. Otherwise use of arrays is fine for C and Java.