Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong description for "Meeting point". #30

Open
DaKnig opened this issue Dec 23, 2023 · 0 comments
Open

Wrong description for "Meeting point". #30

DaKnig opened this issue Dec 23, 2023 · 0 comments

Comments

@DaKnig
Copy link
Contributor

DaKnig commented Dec 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant