My solutions for AdventOfCode 2025. Primary language: Go
Find a file
2025-12-07 20:07:37 +01:00
cmd Day 06 (#3) 2025-12-06 22:55:09 +01:00
shared Initial, with days 1, 2 and 3 fully solved. 2025-12-03 17:34:14 +01:00
tasks Rework day 6 (#5) 2025-12-07 20:07:37 +01:00
templates/day Add template for new days 2025-12-06 22:58:19 +01:00
.gitignore Rework day 6 (#5) 2025-12-07 20:07:37 +01:00
go.mod Initial, with days 1, 2 and 3 fully solved. 2025-12-03 17:34:14 +01:00
languages.toml Implement day 04 (#1) 2025-12-04 22:00:10 +01:00
LICENSE Initial, with days 1, 2 and 3 fully solved. 2025-12-03 17:34:14 +01:00
main.go Day 07 (#4) 2025-12-07 12:17:31 +01:00
README.md Rework day 6 (#5) 2025-12-07 20:07:37 +01:00

aoc2025

Sketchy solutions to Advent of Code 2025.

To run a day:

  1. Change the day import in main.go to the appropriate value
  2. Configure which input you'd like to use
  3. Configure which one of the day's task you'd like to execute

Remarks

Day 6

Initially, I took a bad decision when modeling the data structure for task 1, which lead me with two choices for task 2:

  1. Rewrite everything to match the new task, or
  2. Monkey-Path some special behavior that would make it work.

I went with the latter, and it works and isn't too bad, but still I'm not really happy with it.

Later on, I wrote a second solution for the task that, for my understanding, should take quite a bit longer to run, but the code seems more logical to me. In the end, timing doesn't really differ? (See Benchmarks below)

You can still find the old version on one of the earlier commits.

Benchmarks

On my machine, a Ryzen 7 4700, using plain time for running, without build time. All times in seconds, max from three runs.

Day Task User Sys Total
cmd/hello.go - 0.10 0.05 0.570
1 1 0.11 0.06 0.067
1 2 0.12 0.05 0.062
2 1 0.25 0.06 0.211
2 2 0.53 0.06 0.468
3 1 0.12 0.06 0.065
3 2 0.11 0.06 0.065
4 1 0.12 0.06 0.065
4 2 0.14 0.06 0.082
5 1 0.10 0.05 0.072
5 2 0.11 0.05 0.064
6 (old) 1 0.11 0.06 0.066
6 (old) 2 0.11 0.06 0.069
6 (new) 1 0.12 0.05 0.064
6 (new) 2 0.11 0.05 0.063
7 1 0.10 0.06 0.065
7 2 0.10 0.06 0.070