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/stealthshark7 Dec 06 '25

The math was hurting my head for part two. Then I realized I could think outside the box and make it easier on myself. I guess it may be a brute force approach.

For each command, create an array. Then count the zeros that show up and add to running total. For example, starting at 50 with a command “L5” would produce [49,48,47,46,45]