You are viewing a single comment's thread. Return to all comments →
Thanks for sharing! This is way simpler than my Python3 solution that nested loops
n = int(input().strip()) a = [int(temp_a) for temp_a in input().strip().split(' ')] for x in range(1, n+1): for num in range(len(a)): if x == a[num]: value = num + 1 for num in range(len(a)): if value == a[num]: print(num+1)
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
Thanks for sharing! This is way simpler than my Python3 solution that nested loops