-
Notifications
You must be signed in to change notification settings - Fork 525
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
Sum of multiple issue #360
Comments
Perhaps the intention is for sum_of_multiples to give the sum of unique multiples? |
Only unique multiples are considered; 12 should only be considered once. This is the intent of the example in exercism/problem-specifications#157. If it should be that the description was not clear about it, or can be made clearer, then it will be time to suggest an improvement to https://github.com/exercism/problem-specifications/blob/master/exercises/sum-of-multiples/description.md. |
@petertseng @LukeSkyw |
I agree that the task assignment formulation is somewhat vague and can probably be improved, but to me, there no such thing as unique multiples, as these multiples are just some of natural numbers: 1,2,3,4.... I think the root of evil is that some folks treat these multiples are independent numbers for each factor, whereas they should not. |
So the question is what to do? |
@hekrause Now that the upstream documentation is updated, would you like to create a PR to update the Rust track for this exercise? The actual work involved should be pretty much |
The sum of multiples exercise says:
One of the test is:
However:
But the test says 30, like it's ignoring
4 x 3
(the second 12).The text was updated successfully, but these errors were encountered: