License | MIT |
---|---|
Maintainer | @tylerjl |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Solutions to the 2021 day 06 set of problems for adventofcode.com.
Synopsis
- part6A :: Text -> Int
- part6AMV :: Text -> Int
- part6ASeq :: Text -> Int
- part6B :: Text -> Int
- part6BMV :: Text -> Int
- part6BSeq :: Text -> Int
- solve6Seq :: Int -> Seq Int -> Int
- solve6Seq' :: Seq Int -> Seq Int
- solve6MV :: Int -> [Int] -> Int
- solve6 :: Int -> [Int] -> Int
- breed :: Num a => IntMap a -> IntMap a
- parseFish :: Text -> [Int]
- parseFish' :: Text -> [Int]
- parseFish'' :: Text -> [Int]
Documentation
solve6 :: Int -> [Int] -> Int #
Iterate for a given number of days given a starting value and return the total.
parseFish' :: Text -> [Int] #
Parse puzzle input into a list of Int
s but do so with a dumb parser.
parseFish'' :: Text -> [Int] #
Parse puzzle input into a list of Int
s but do so with a dumb parser.