Advent of Code 2023

Advent of code 2023 - I’ll eventually collect some general info about the libraries that I’m using repeatedly, as well as some other more general learning, but the details are in each post below.

Day03 Tokens, Enums and Docstrings

The Day 03 challenge involves the calculating whether a character symbol is adjacent to a part number in a two dimensional map, such as:

467..114..
...*......
..35..633.
......#...
617*......
.....+.58.
..592.....
......755.
...$.*....
.664.598..

and then doing things with the part numbers.

Day02 Copilot and Vanilla Parsing

After refreshing my knowledge of the rust parsing library ’nom’ with the day01 challenge, I was keen to do the second challenge without, simply using the standard library’s string manipulation and default parsing for this simpler parsing problem.