r/adventofcode • u/Just-Routine-5505 • Dec 03 '25
Visualization [2025 Day 03] CLI Visualization
I visualized my greedy solution for Advent of Code Day 3. The animation shows a sliding window selecting the next maximum digit while ensuring enough characters remain to reach the required output length. Blue = current window, Red = remaining-picks region, Green = chosen max.The number builds step-by-step from left to right.
This works for both parts of the problem
Edit:
Another example with longer input: https://imgur.com/a/MLghbhk (i couldn't add another gif here)
138
Upvotes
View all comments
Show parent comment
1
u/NlNTENDO Dec 04 '25
OH duh lol sorry i though you were still talking about the pointers. honestly shouldnt be talkign about code after the gummies hit