This repository contains my solutions for the Advent of Code 2024 challenges, written in Go. However, they may not be the most concise nor the most optimized.
advent-of-code/
β
βββ go.mod
βββ go.sum
βββ main.go # Entry point for running specific days
β
βββ solutions/ # Daily solutions
β βββ day01.go # Solution for Day 1
β βββ day02.go # Solution for Day 2
β βββ ...
β
βββ inputs/ # Input files for each day
β βββ day01.txt # Input for Day 1
β βββ day02.txt # Input for Day 2
β βββ ...
β
βββ utils/ # Reusable utilities
βββ file.go # Functions for reading input files
-
Clone this repository:
git clone https://github.com/Lezurex/advent-of-code24.git cd advent-of-code24 -
Prepare your input files:
- Place your inputs in the
inputs/directory. - Name them as
dayXX.txt(e.g.,day01.txtfor Day 1).
- Place your inputs in the
-
Run a solution:
- Open
main.goand set thedayvariable to the desired day. - Run the program:
go run main.go
- Open
Happy coding! π