I just completed all 12 days of Advent of Code 2025! #AdventOfCode adventofcode.com
Don't spend much time thinking about day 12; try the simplest option first. I did this as a gut check to trim out unnecessary trials; on a chance, I submitted the answer - it was correct.
github.com/ymiseddy/Adv...
Posts by Shawn Eddy
I've completed "Reactor" - Day 11 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/11
First directed graph. I was overthinking it and got some outrageous answers for Part 2.
github.com/ymiseddy/Adv...
I saw a lot of other solutions using the z3 library. It's high time I learned it. Here's the solution for day 10 part 2 using z3 instead of linear programming:
github.com/ymiseddy/Adv...
I just completed "Factory" - Day 10 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/10
Part 1 - tried Dijkstra's, but was too lazy to implement a cost function, so it degraded to BFS.
Part 2 - was crazy - tried A*, linalg solver, ended up with linprog FTW.
github.com/ymiseddy/Adv...
I've completed "Movie Theater" - Day 9 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/9
It took a bit to find a reasonably efficient algorithm for part 2. I'm still not convinced it is the best.
github.com/ymiseddy/Adv...
I've completed "Playground" - Day 8 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/8
This is my favorite so far!
Messy code - I may do some cleanup later.
Solution is here:
github.com/ymiseddy/Adv...
I just completed "Laboratories" - Day 7 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/7
Solution is here:
github.com/ymiseddy/Adv...
Part 2 - first attempt grew exponentially, so I had to find a better way.
I just completed "Trash Compactor" - Day 6 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/6
I spent too much time trying for a pure-math solution to part 2 before realizing that the padding made that impossible.
github.com/ymiseddy/Adv...
I've completed "Cafeteria" - Day 5 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/5
Be careful with those overlaps!
Here's my solution:
github.com/ymiseddy/Adv...
I personally don't worry about code being slow until we start getting into NP type problems, where it makes a difference. If it completes before I come up with a better solution, it's good. ๐
I just completed "Printing Department" - Day 4 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/4
The Part 1 solution is easy to reuse for Part 2 - I was even building a new map so I could display it for debugging.
Solution code is here:
github.com/ymiseddy/Adv...
I just completed "Lobby" - Day 3 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/3
I went with the direct solution for both parts.
github.com/ymiseddy/Adv...
I just completed "Gift Shop" - Day 2 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/2
I just went with the messy, obvious solution for both - I'm certain there were some optimizations to be had:
github.com/ymiseddy/Adv...
I just completed "Secret Entrance" - Day 1 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/1
This year, I'm doing solutions in Python. Here is a link to today's solution on GitHub:
github.com/ymiseddy/Adv...
If you go many years with a hammer as your only tool, you get really good at pounding things.
I'm impressed with the responses I get from my local Deepseek instance. It is reasonably performant and gives excellent responses. I also like reading through the thinking sections to see how it reasons about its response.
I just completed all 25 days of Advent of Code 2024! #AdventOfCode adventofcode.com
I have to say, the past 25 days were adventurous! Long time SWE, first time doing AoC. I am currently going through the Easter Eggs in the earlier problems.
github.com/ymiseddy/Adv...
I just completed "Crossed Wires" - Day 24 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/24
This one was a complete pain; I haven't worked with binary adders in decades.
I resorted to flat rule checking on this, and surprisingly, it worked.
github.com/ymiseddy/Adv...
I just completed "LAN Party" - Day 23 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/23
Part two took abnormally long because I got burned by one of Go's footguns in how it handles slices.
github.com/ymiseddy/Adv...
Yeah that didn't last. Still awake even though I finished hours ago. ๐ด
It's usually worth it - even if you're building a small CRUD app; having the event store is immensely beneficial. Fearless deleting, keeping your reporting system clean, free auditing, not to mention the benefit when debugging hard problems.
I just completed "Monkey Market" - Day 22 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/22
Ok, I stayed up for this one. The hardest part was parsing what the heck these monkeys were doing. ๐๐๐๐๐๐
I just completed "Keypad Conundrum" - Day 21 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/21
I've decided not to stay up late to try to solve these. I'm glad I didn't for this one; it took me quite some time.
I just completed "Race Condition" - Day 20 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/20
I tried a few dumb ways before stumbling on a reasonable way to find cheats. BFS is overkill for finding the initial path since it doesn't branch.
github.com/ymiseddy/Adv...
I just completed "Linen Layout" - Day 19 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/19
I would have finished this one faster if I hadn't written bugs early on.
github.com/ymiseddy/Adv...
I didn't binary search part 2 instead, I just kept adding rocks checking to see if they fell on my existing path - only then, did I need to re-run the search.
Yeah, I made the exact same mistake. After figuring that out, it was a lot easier than some of the recent ones.
I just completed "RAM Run" - Day 18 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/18
Today, I made it hard for myself, thinking I had to compute the path while the rocks were falling on part 1. After I figured out that mistake, it was straightforward.
github.com/ymiseddy/Adv...
I just completed "Chronospatial Computer" - Day 17 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/17
Both parts were interesting - implementing a small assembly language and figuring out how to generate a specific output. I'm surprised my solution worked!
github.com/ymiseddy/Adv...
I just completed "Reindeer Maze" - Day 16 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/16
Finding Go's heap structure and building a priority queue to implement part 1 took me forever.