O'Reilly logo
  • Coleman Beasley thinks this is interesting:

Question

From

Cover of Coding Interviews: Questions, Analysis & Solutions

Note

All the elements in this list must be unique, no? Otherwise, how would one determine the position of the element for the brute force method's distance calculation?