Advent of Code 2023
cd ./cmd/<dayxx>
go build
Comment:
./day01 -part a -file input
./day01 -part b -file input
Comment: First use of regex. Easier than yesterday!
./day02 -part a -file input
./day02 -part b -file input
./day03 -part a -file input
./day03 -part b -file input
./day04 -part a -file input
./day04 -part b -file input
Part b is Sloooooow but I decided I don't care :-)
./day05 -part a -file input
./day05 -part b -file input
Expected to change to an equation to solve part 2 but my naive solution ran in under 0.1 sec so I didn't bother
./day06 -part a -file input
./day06 -part b -file input
Long winded code. Could collapse part b into part a easily and reduce the amount of code but I'm behind on AoC so not going to do it.
./day07 -part a -file input
./day07 -part b -file input
LCM needed to speed up part 2
./day08 -part a -file input
./day08 -part b -file input
I don't understand how I made part 2 work, but it does so I'm done.
./day09 -part a -file input
./day09 -part b -file input
Had to rewrite once I saw part 2 and realised I didn't need to map out the expanded universe
./day11 -part a -file input
./day11 -part b -file input