r/adventofcode • • 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

272 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 04 '15

The speed issue is mostly due to PHP. I just did a 10,000,000 loop, with string interpolation and hasPrefix uses on every loop in 17 seconds, as a test.