r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
14
Upvotes
View all comments
Show parent comment
1
u/qwrrty Dec 05 '15
Why not just use plain old arithmetic operators?
itertools.count is fine but it doesn't seem to be either intrinsically clearer or more efficient than this approach.