r/adventofcode • • 11h ago

Visualization [2026 Day 01] counting...

Post image
52 Upvotes

6 comments sorted by

4

u/button_boxer 3h ago

A nice demonstration of the way the inputs are carefully constructed to be unambiguous. There has to be a difference between the counts for the third and fourth elements, otherwise the answer depends on the stability or otherwise of your sorting algorithm.

1

u/Ok-Curve902 2h ago

True. I made a similar observation

2

u/samsifpv 2h ago

How did you do that? It looks great, I'd love to take a look at the code.

1

u/Ok-Curve902 2h ago

Thx. It's p5.js.