problem-specifications icon indicating copy to clipboard operation
problem-specifications copied to clipboard

Clarify handling scores greater than 255 in allergies

Open asarkar opened this issue 3 years ago • 0 comments

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

asarkar avatar May 26 '22 11:05 asarkar