@ad87 I was also confused by the indices requirement.
Posts made by zerochou
RE: Simple and easy-understanding O(n^2) JAVA solution
RE: Beat 90% Fast Easy Understand Java Solution with Brief Explanation
is there any number which would fill in the set with HUGE different numbers? if the answer is yes, the algorith is not practical (as it consumes too much memory).
I came up with similiar solution, but I resume the number would be changed to its original value, thus only use a variable to check if it equals to original value ot check loop. ended up with TLE.