License | MIT |
---|---|
Maintainer | @tylerjl |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Solutions to the 2021 day 03 set of problems for adventofcode.com.
Documentation
Accept a list of bits and multiply the matching value with the matching common and least-common bits, respectively.
keepAt :: [Bits] -> Bit -> Int -> [Bits] #
Keep bit arrays that have a particular bit set at a particular index.