You are viewing a single comment's thread. Return to all comments →
This method wouldn't work if the numbers were not close together? I tested it for an array with suiting numbers in the opposite side of the array and sure enough it didn't work.
So, is there a way to find the anwer for this case?