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/jdog90000 Dec 05 '15

Yeah it seems to work really well, especially after removing the conversion to string every time to test and instead testing the bytes themselves. It usually finishes between 345ms and 390ms.