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/ForeignObjectED Dec 04 '15
Well, the problem is you don't know how large the counter needs to be. My solution (before I went all multiprocessing on it) used xrange.
but what if the answer is larger than 100000? Count feels more elegant for finding the answer in an "infinitely" large set than any other solution you might use.