title: Search for the index of an array with the closest Value to N - Java
body: <p>Can anyone offer any advice as to how you can search an Array for the closest value to N of an unordered array without using API classes? I don't want my algorithm to be linear time.</p>
  
  <p>Would one way to do this be to order the array and then do an binary-chop search?</p>
  
  <p>Are the any more efficient methods to doing this?</p>