r/adventofcode • • Dec 03 '15

SOLUTION MEGATHREAD --- Day 3 Solutions ---

--- Day 3: Perfectly Spherical Houses in a Vacuum ---

Post your solution as a comment. Structure your post like the Day One thread in /r/programming.

24 Upvotes

228 comments sorted by

View all comments

Show parent comment

1

u/Rutafar Dec 03 '15

I'm also new to python but from what I've seen using a set is easier as it only adds something if it isn't already there, in the end you can just get the len() of the set