I need to take input values, and in the most efficient manner possible find a sum closest to a value X, between value X and Y.
The number of input values is variable, and all input is negative. X doesn't have to be lower than Y, and vice versa. That is, X can be -8388608 or -(2^23) and Y can...