I'm looking for an efficient algorithm for detecting equal values in an array of integers N size. It must return the indices of the matches.Alas, I can't think of anything more clever then brute force with two loops.Any help will be appreciated.Thanks!