the description states :
Send a number x which minimizes the equation
(cl-loop for n in N
sum (abs (- n x)))
in actuality, and I checked in code, it doesn't want the "x which minimizes the equation", but instead "the minimal distance" itself.
for example, for the following inputs, (3 10 8 7 7 3 10 7 8 7) the "x which minimizes the equation" is 7, but the expected answer is 16.
the description states :
in actuality, and I checked in code, it doesn't want the "x which minimizes the equation", but instead "the minimal distance" itself.
for example, for the following inputs,
(3 10 8 7 7 3 10 7 8 7)the "x which minimizes the equation" is 7, but the expected answer is 16.