Advent of Code 2025 - Day 08
Okay, this one was tough.
Tried a dozen data structures before settling on circuit IDs + HashTable.
Accidentally mutated object fields while using them as hash table keys.
Still have no idea why the puzzle counts already-connected junction boxes, had to look it up on reddit.
Time to solve:
Part 1: almost 2 hours
Part 2: 4 minutes
Runtime: 364 ms.
Full solution at Codeberg: https://codeberg.org/janAkali/aoc25-nim/src/branch/master/day_08/solution.nim










