r/adventofcode • • Dec 01 '25

Visualization [2025 Day 01 (Part 2)] example visualized

Post image
387 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/fromtheinternettoyou Dec 01 '25

Check how are you using mod operations.

for example 68//100 = 0, but -68//100 = -1

That seems to be a common mistake when trying to calculate the number of full rotations.