Day08
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2021/day/8

Figure out how the miswired segment display works.

Synopsis

Documentation

main :: IO () Source #

>>> :main
355
983030

mappings :: [Map Int Int] Source #

All the possible reassignments of wires

solve :: ([String], [String]) -> [Int] Source #

Given a list of segment examples and outputs decode the outputs.

toBitMask :: String -> Int Source #

Convert the segment labels to a more efficient characteristic Int