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
Copy file name to clipboardExpand all lines: exercises/sum-of-multiples/instructions.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The points awarded depend on two things:
9
9
10
10
The energy points are awarded according to the following rules:
11
11
12
-
1. For each magical item, take the base value and find all the multiples of that value that are less than or equal to the level number.
12
+
1. For each magical item, take the base value and find all the multiples of that value that are less than the level number.
13
13
2. Combine the sets of numbers.
14
14
3. Remove any duplicates.
15
15
4. Calculate the sum of all the numbers that are left.
@@ -18,10 +18,10 @@ Let's look at an example:
18
18
19
19
**The player completed level 20 and found two magical items with base values of 3 and 5.**
20
20
21
-
To calculate the energy points earned by the player, we need to find all the unique multiples of these base values that are less than or equal to level 20.
21
+
To calculate the energy points earned by the player, we need to find all the unique multiples of these base values that are less than level 20.
22
22
23
-
- Multiples of 3 up to 20: `{3, 6, 9, 12, 15, 18}`
24
-
- Multiples of 5 up to 20: `{5, 10, 15, 20}`
25
-
- Combine the sets and remove duplicates: `{3, 5, 6, 9, 10, 12, 15, 18, 20}`
0 commit comments