These are my solutions for each day of the Advent of Code 2024 event.
To run these, you must have Go 1.23+ installed. You can build the app with the following command:
go build -o aoc .
$ ./aoc day -5
DAY 5:
PART 1:
Middle page sum for correct: 6267
PART 2:
Middle page sum for reordered incorrect updates: 5184
$ ./aoc
DAY 1:
PART 1:
Total distance: 1830467
PART 2:
Similarity score: 26674158
DAY 2:
PART 1:
Safe reports: 246
PART 2:
Safe reports after problem dampening: 318
[...]