answer in c /c++/java [on hold]

Tuesday, July 1, 2014

You are given with an array of integers. All elements in the array are unique i.e. no element is repeated. You have to write a function to find the 2 numbers whose difference is minimum.


Example: Input – elements = {13, 10, 42, 34, 18, 40, 77, 85, 6} Output – 42 & 40. Difference is 2







http://ift.tt/1miKEUw