-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
sync sum of multiples docs #3398
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
Conversation
kytrinyx
commented
Apr 11, 2023
- Sync sum-of-multiples docs with problem-specifications
- Sync sum-of-multiples docs with problem-specifications
The sum-of-multiples exercise has been overhauled as part of a project to make practice exercises more consistent and friendly. For more context, please see the discussion in the forum, as well as the pull request that updated the exercise in the problem-specifications repository: - https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943 - exercism/problem-specifications#2249
There were a few follow-on tweaks to sum-of-multiples. For context, this is part of the project to overhaul all the practice exercises. You can read about that here: https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943 ---- If you approve this pull request, I will eventually merge it. However, if you are happy with this change **please merge the pull request**, as it will get the changes into the hands of the students much more quickly. If this pull request contradicts the exercise on your track, **please add a review with _request changes_**. This will block the pull request from getting merged. Otherwise we aim to take an optimistic merging approach. If you wish to suggest tweaks to these changes, please open a pull request to the exercism/problem-specifications repository to discuss, so that everyone who has an interest in the shared exercise descriptions can participate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was out of sync slightly:
$ git rev-parse --short HEAD
3b5d88aa
$ bin/configlet sync -e sum-of-multiples
Updating cached 'problem-specifications' data...
Checking exercises...
[warn] docs: instructions unsynced: sum-of-multiples
[warn] some exercises have unsynced docs
$ bin/configlet sync -e sum-of-multiples --docs -uy
Updating cached 'problem-specifications' data...
Checking exercises...
[warn] docs: instructions unsynced: sum-of-multiples
Updated the docs for 1 Practice Exercise
The `sum-of-multiples` exercise has up-to-date docs!-The energy points are awarded according to the following rules:
+The energy points are awarded according to the following rules:
1. For each magical item, take the base value and find all the multiples of that value that are less than the level number.
2. Combine the sets of numbers.
3. Remove any duplicates.
-4. Calculate the sum of all the numbers that are left.
-
+4. Calculate the sum of all the numbers that are left.
Let's look at an example:
@@ -25,4 +24,4 @@ To calculate the energy points earned by the player, we need to find all the uni
- Multiples of 5 less than 20: `{5, 10, 15}`
- Combine the sets and remove duplicates: `{3, 5, 6, 9, 10, 12, 15, 18}`
- Sum the unique multiples: `3 + 5 + 6 + 9 + 10 + 12 + 15 + 18 = 78`
-- Therefore, the player earns **78** energy points for completing level 20 and finding the two magical items with base values of 3 and 5
\ No newline at end of file
+- Therefore, the player earns **78** energy points for completing level 20 and finding the two magical items with base values of 3 and 5.| - The base value of each magical item collected by the player during that level. | ||
|
|
||
| The energy points are awarded according to the following rules: | ||
| The energy points are awarded according to the following rules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The energy points are awarded according to the following rules: | |
| The energy points are awarded according to the following rules: |
| 2. Combine the sets of numbers. | ||
| 3. Remove any duplicates. | ||
| 4. Calculate the sum of all the numbers that are left. | ||
| 4. Calculate the sum of all the numbers that are left. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 4. Calculate the sum of all the numbers that are left. | |
| 4. Calculate the sum of all the numbers that are left. |
| - Multiples of 5 less than 20: `{5, 10, 15}` | ||
| - Combine the sets and remove duplicates: `{3, 5, 6, 9, 10, 12, 15, 18}` | ||
| - Sum the unique multiples: `3 + 5 + 6 + 9 + 10 + 12 + 15 + 18 = 78` | ||
| - Therefore, the player earns **78** energy points for completing level 20 and finding the two magical items with base values of 3 and 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Therefore, the player earns **78** energy points for completing level 20 and finding the two magical items with base values of 3 and 5 | |
| - Therefore, the player earns **78** energy points for completing level 20 and finding the two magical items with base values of 3 and 5. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried a fake-out, since resolving the conflicts through the website appeared to block rebasing. This may not work either, in which case I might need to re-submit via a configlet sync.
BethanyG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! 🌟 🌈 It had merge conflicts, but I accepted the latest instructions that does a strict less than rather than a less than or equal to.
Resolved merge conflicts, and am now attempting to re-push to repo.
|
I am going to Squash and Merge. I'd prefer to do a rebase + merge, but for this it seems simpler to just forge ahead. |
|
Oh, man. @ee7 - I was working locally while you were writing your comments. Did I just screw things up again? |
|
I'll do a re-sync to catch the little turdlets. |
|
Doesn't matter. We can always just fix those things in #3396 :) |
|
I have to say that being able to sync all those docs automagically is well, magical. ✨ 😄 I 💙 configlet. |
|
@ChronoJon -- Thanks for commenting. We are well aware that we have some syncing issues. Please see this note in the forum for some more details, with an ETA on a fix . Since this issue is affecting more than one track, we need to be careful as we deploy it. |
