-
-
Notifications
You must be signed in to change notification settings - Fork 553
Description
Hi There are three ways to interpret the Allergies problem with regards to large scores. Below are the options. The first one passes the test in Elm-lang but seems incorrect to me. The second seems correct but fails the tests. And the third is possible but tests should catch it better.
If the score is >= 256 then
- Subtract 256 from the score and calculate.
- Ignore numbers above 256; treat score as 255 and calculate.
- Subtract 128 and mark the highest allergy and calculate, if the score is still above 128 subtract it again and calculate. You might end up with an allergy duplicated or just counted twice.
So following the first case a score of 257 equals a score of 1 since 257 - 256 is 1. This doesn't seem right to me, but if it is right then it should be stated in the Read Me.
The second is the one the READ ME alludes to but the tests fail.
Which is the way this should go? Should we clarify the READ ME with:
Scores are a representation of binary and cycle, so a score of 256 is the same as 0 and a score of 257 as 1.
Or do we need to updated the tests and the READ ME with:
Scores higher than the maximum score should be treated as the maximum score.