r/adventofcode • u/p88h • 9h ago
Visualization [2026 Day 1] No-Sort
https://youtube.com/watch?v=sHfSJyViXa4&feature=youtu.beLeverages the specific output distribution (top 3 elements and bottom three elements have to fall on unique-ish count buckets so that the answer is deterministic) to reduce the problem to 3 phase counting:
- step 1: count the occurrences of each input (1000 buckets)
- step 2: compute the counts histogram
- step 3: select the top/bottom histogram buckets
then identify the elements with specific counts.
Nim + Raylib source
10
Upvotes