I have a list of numbers and I want to find closest four numbers to a search number.
For example if the search number is 400000
and the list is: {150000, 250000, 400000, 550000, 850000, 300000, 200000)
, then the closest 4 numbers would be:
{300000, 400000, 250000, 550000}
Any help or suggestion would be appreciated.