This repository contains my solutions for the Advent of Code 2024 challenges.
I am going to solve the challenges using Go. This is my second edition of the Advent of Code.
- Go 1.21 or higher
- pre-commit
- commitizen (optional)
To run the solutions, you need to have Go installed on your machine. You can download it here.
To run a solution, run the following command from the root of the project:
go run dayXX/main.goReplace XX with the day number you want to run.
This will output something like this:
Result XXa: XXX Result XXb: XXXWhere XX is the day number and XXX is the result of the solution.
Inputs are stored in the inputs directory. Each day has its own directory, named dayXX, where XX is the day number. Each day directory contains a main.go file with the solution for that day. Inputs should not be pushed to the repository, so they are ignored in the .gitignore file.
. ├── LICENSE ├── README.md ├── day01 │ └── main.go ├── go.mod └── inputs ├── input01a.txt └── input01b.txt- Total time spent: 7 hours 40 minutes