Advent of Code 2025 Day 1

This year, there will only be 12 puzzles - which means we will get longer to finish them by December 25th :slight_smile:

This is a thread to discuss Day 1 (which starts on 1st December at 05:00 UTC ) :slight_smile:

https://adventofcode.com/2025/day/1

REMEMBER!
It is VERY important NOT to write any public spoilers :slight_smile:
ALWAYS keep spoiler stuff hidden inside one of these

Summary

This text will be hidden

which you can obtain by clicking on the + icon and then selecting Hide Details

image

Good luck :slight_smile:
FYI one of the features of Advent of Code is that we all get given different inputs so our answers will be different.
The examples are all the same but each of us gets different inputs for us to solve

Part 1

This was pretty simple

It would be fun to make a dial and show all the turns as they happen

Part 2

This was a little tough. It took me a while to figure out how to detect when it passed 0. It also took me a while to realize that when it reaches 0, it’s not detected as passed 0.

If anyone wants, here’s the private leaderboard code 1492847-2e9c76cd

Part 1

This was easy enough, once I realized the numbers could be more than 2 digits. I seem to have done it similarly to @ego-lay_atman-bay.

Part 2

Part 2 was quite a bit harder. Ultimately I separated the additional rotations (hundreds place) from the rest of the number to count the zeros separately. I also had to let go of using mod to get the non hundreds digit part of the number because it made everything positive. Ultimately similar to @ego-lay_atman-bay’s solution, although with fewer variables:

I completed p1 easily, but I did not optimize part 2 since I just built off of part 1 so I ended up just spending 2 minutes on part 2.

here

that project is privated

I can’t access any part of the Snap site other than the forums right now, so I’ll check back later and see if I can fix it.

Blocked?

my solution

part 1


part 2

project

Part 1

Pretty simple.

Part 2

Not efficient, but it works.

Just corrected my Part 1

I’ve seen, on social media, quite a few people doing animations of their solutions so I’m thinking this would be a nice bonus task for Snappers :slight_smile:

I’m quite a bit behind on posting my solutions, so if I do that it’ll probably be after the 12th (last day of AoC).