UP HOME

Week 1 of AOC 2025

[2025-12-08 Mon]

A week has passed since the start of Advent of Code 2025, and I've solved only 2 days so far. I know, I'm not that productive, but work was busy and it was hard to squeeze some time to do all the 7 days, but hey! it's better than nothing, and I've had a lot of fun writing some code in Go.

This is a quick update on my experience so far

Gogs - Self-hosting a git service was never easier

I really like the idea of hosting a git service at home, if you've missed the previous article, gogs is hosted at https://lab.afaiz.dev I'm uploading my git repos there and I'm pretty satisfied with the service, it was very easy and very smooth to set up, I've tweaked the default configuration to disable registration in `app.ini`

[auth]
DISABLE_REGISTRATION        = true

Day 1 - Rotating Dial

Source Code : Part 1 Part 2

Day 1 was a nice warm-up problem. It mostly involved parsing the input correctly and simulating a rotating mechanism step by step. The logic itself wasn't complicated, but it was a good reminder to be careful with edge cases (e.g. when the initial position is 0).

I solved both parts using a straightforward approach in Go, without trying to over-optimize. It was mainly an exercise in reading the problem carefully and translating it cleanly into code.

Day 2 - Invalid IDs

Source Code : Part 1 Part 2

Day 2 was kind of tricky, because I didn't find any smart idea to solve it, so I've just coded a loop that goes through every single ID in each range and crossed my fingers that it won't take 3 years… And it worked, AOC's input was kind enough and I got my 2 stars.


Thanks for reading!

Subscribe to get future posts via email


Add a comment


Comments (0)


Copyright © 2025 Abderrahmane Faiz

learn_in_public@afaiz.dev