Skip to content

itsluketwist/advent-of-code-2023

Repository files navigation

advent-of-code-2023

My solutions to Advent of Code 2023, attempting to learn Go (from a minimal base). Using Go version go1.21.4.

check code workflow

notable days

  • 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

install

Make sure you have go installed:

go version

Otherwise... go get it!

usage

To run the code for day x, run:

make run d=x

You can also specify a day part, or whether to try the final input:

make run d=x p=1 t=1

To test the code for day x, run:

make test day=x

Format and lint the code with:

make clean

You can also create the template folder and code for day x using:

make new d=x