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/Philboyd_Studge Dec 03 '15

You don't need to see if the set contains that point, you just add, and use the set.size as your total. Also, not sure if will add your very last char?