You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: