adventofcode-0.1.0.0: Haskell solutions to adventofcode
LicenseMIT
Maintainer@tylerjl
Safe HaskellSafe-Inferred
LanguageHaskell2010

Y2021.D12

Description

Solutions to the 2021 day 12 set of problems for adventofcode.com.

Synopsis

Documentation

parse12 :: Text -> [(Room, Room)] #

Pairs of cave "rooms", which we parse very simply and postprocess later.

parse12' :: Text -> Map Room (Set Room) #

An intermediate parsing function; once we get the raw room pairs we turn it into the structure we'll work with later.

part12A :: Text -> Int #

Solution to part A

part12B :: Text -> Int #

Solution to part B