problem-specifications
problem-specifications copied to clipboard
Clarify handling scores greater than 255 in allergies
I found several closed tickets related to this after my code failed the last test. The following comment is anything but clear. The first thought is to take a modulo, but the test expects a bitwise-AND operation.
For example, if the allergy score is 257, your program should only report the eggs (1) allergy.
Please add some explanation as to why, may be something like this comment.
https://github.com/exercism/problem-specifications/issues/224 https://github.com/exercism/problem-specifications/pull/389 https://github.com/exercism/rust/pull/209