If I am given a list of integers/floats, how would I find the two closest numbers using sorting?
It could be more than one possibilities. Consider this list
[0,1, 20, 25, 30, 200, 201]
[0,1] and [200, 201] are equal closest.