aoc2017-0.1.0.0: Advent of Code 2017 - my answers
Day12
Description
Synopsis
parse :: String -> Map Int [Int] Source #
Returns a mapping containing each input line "0 -> 1, 2..".
connected :: Ord a => Map a [a] -> a -> Set a Source #
Returns the set of all nodes reachable from a seed node.
day12a :: String -> Int Source #
day12b :: String -> Int Source #