I would like know how I can find the nearest solution.
For example, I have a list like it :
list=[1,2,3,4,5,6,7]
And ofc my list is really big , and I want find the nearest solution.
If I say at my algorithm, " find me the number 8" But I have no number 8, so he will return me 7 because 7 is the nearest from 8.
Thanks for reading me !