Day 9

Part A is a simple 2SUM. We use Vector to speed up computation due to Part B.

More …

Day 8

AoC presents us with another computer challenge. We conjure up some data types representing the console state as well as its instructions.

More …

Day 7

Our first goal here is to simplify the input. We conjure up the replace function and make some replacements to our text. We also define a data type for bags holding other bags and how to parse the cleaned up text.

More …

Day 6

This is a fantastic use case for lens. We define a passport to be a list of fields and a field to be a key value pair. The parser is also rather simple.

More …