Skip to content

Commit c13295a

Browse files
authored
Sync docs for practice exercise allergies (exercism#2372)
1 parent 9c6ba1f commit c13295a

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

exercises/practice/allergies/.docs/instructions.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.
44

5-
An allergy test produces a single numeric score which contains the
6-
information about all the allergies the person has (that they were
7-
tested for).
5+
An allergy test produces a single numeric score which contains the information about all the allergies the person has (that they were tested for).
86

97
The list of items (and their value) that were tested are:
108

11-
* eggs (1)
12-
* peanuts (2)
13-
* shellfish (4)
14-
* strawberries (8)
15-
* tomatoes (16)
16-
* chocolate (32)
17-
* pollen (64)
18-
* cats (128)
9+
- eggs (1)
10+
- peanuts (2)
11+
- shellfish (4)
12+
- strawberries (8)
13+
- tomatoes (16)
14+
- chocolate (32)
15+
- pollen (64)
16+
- cats (128)
1917

2018
So if Tom is allergic to peanuts and chocolate, he gets a score of 34.
2119

@@ -24,7 +22,6 @@ Now, given just that score of 34, your program should be able to say:
2422
- Whether Tom is allergic to any one of those allergens listed above.
2523
- All the allergens Tom is allergic to.
2624

27-
Note: a given score may include allergens **not** listed above (i.e.
28-
allergens that score 256, 512, 1024, etc.). Your program should
29-
ignore those components of the score. For example, if the allergy
30-
score is 257, your program should only report the eggs (1) allergy.
25+
Note: a given score may include allergens **not** listed above (i.e. allergens that score 256, 512, 1024, etc.).
26+
Your program should ignore those components of the score.
27+
For example, if the allergy score is 257, your program should only report the eggs (1) allergy.

0 commit comments

Comments
 (0)