Given an array submitted in a form of struct field, containing integer numbers. For convenience, let's assume that the numbers are already sorted in ascending order:
>> s.x ans = 2 ans = 2 ans = 5 ans = 5 ans = 5 ans = 8 ans = 8
Find indexes of elements, which occur exact 2 times:
ind = 1 2 6 7
Best Answer