My solutions to Advent of Code 2023, attempting to learn Go (from a minimal base).
Using Go version go1.21.4.
- Day 8 - GCD / LCM solution
- Day 10 / Day 18 - uses Shoelace formula and Pick's theorem
- Day 12 - dynamic programming example
- Day 12 - uses Djikstra's algorithm and a bucket heap implementation
- Day 20 - FIFO queue
- Day 23 - graph building + traversal
Make sure you have go installed:
go versionOtherwise... go get it!
To run the code for day x, run:
make run d=xYou can also specify a day part, or whether to try the final input:
make run d=x p=1 t=1To test the code for day x, run:
make test day=xFormat and lint the code with:
make cleanYou can also create the template folder and code for day x using:
make new d=x