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.
13
Upvotes
View all comments
Show parent comment
1
u/fortee Dec 07 '15
I'm so stupid.... substr($hash, 0, 5) === '000000'
I was using 5 as the length of substr...