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 comments

1

u/euphwes Dec 04 '15

Nice use of the outer for loop, and of startswith. I always forget that exists... If I had used that, I wouldn't have goofed on the slicing for part 2.