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 04 '15

It may be your algorithm or how much converting you're doing. I used MessageDigest too and I just tested it and got a time of 343ms.

1

u/Philboyd_Studge Dec 04 '15

Well, I did find that I didn't need to call reset every time, speeded it up there. Other than that it's just looping.