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
2
u/JustCallMeLee Dec 04 '15
Might substr be ever so slightly faster? Here you're still searching for five zeros anywhere in the string when we're only interested in the start.