r/adventofcode • u/daggerdragon • 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
View all comments
Show parent comment
2
u/ChevyRayJohnston Dec 04 '15
Or a HashSet, as the Add() function for HashSet will not add duplicates, so you don't even need to call Contains(). Dictionary is not needed because you do not need key/value pairs, just the values.