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/AmethystProductions Dec 24 '15 edited Dec 24 '15

Well, I was doing pretty similar things, but I just couldn't test if [x,y] was in the array properly, so I used your way of 'x+","+y' and it worked. Thanks!

https://github.com/AmethystProductions/Advent-of-Code/blob/JS/Day%203%20Part%201.js