Skip to content

Commit

Permalink
Update exercises/practice/allergies/.approaches/bitwise-and-case/cont…
Browse files Browse the repository at this point in the history
…ent.md

Co-authored-by: Jie <jie.gillet@gmail.com>
  • Loading branch information
ceddlyburge and jiegillet authored Mar 9, 2024
1 parent f10d997 commit e7c03bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ You can see a variation of [a `Bitwise` and `case` expression solution on Exerci

## When to use this approach?

This is not as concise as some other solutions, but the code is all very simple and easy to read. It is the fastest solution.
This is not as concise as some other solutions, but the code is all very simple and easy to read.
It is the fastest solution of the different approaches.

This approach makes the domain concept of using bit positions in an `Int` to represent a list of `Allergy` a little more explicit, using the bit masks.

Expand Down

0 comments on commit e7c03bb

Please sign in to comment.