• 07 Dec, 2025 *

The first Sunday of Advent of Code. Eric Wastl, the creator, must think we have loads of time in the weekend to solve code puzzles all day. Well, I certainly don’t, but I made it through. Here’s how.

Check out my full solution for day 7 at GitHub.

I’m actually not going part by part in this post today. I’ve refactored a lot of code for part two and re-added logic for part one back into it. So let’s go backwards and start with part two.

Part two

In both parts, we start with the following problems space:

.......S.......
...............
.......^.......
...............
......^.^......
...............
.....^.^.^.....
...............
....^.^...^....
...............
...^.^...^.^...
...............
..^....

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help