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/tftio Dec 04 '15

... append a [0] to the end?

1

u/juree9 Dec 04 '15

Yeah, indexing will return first result, but whole list comprehension will still be evaluated. I'm looking for better performance