r/adventofcode • u/daggerdragon • Dec 06 '15
SOLUTION MEGATHREAD --- Day 6 Solutions ---
--- Day 6: Probably a Fire Hazard ---
Post your solution as a comment. Structure your post like the Day Five thread.
22
Upvotes
View all comments
Show parent comment
1
u/hutsboR Dec 06 '15
That's a good point about
Dict.update. The issue with my implementation is that my map storescoordinate -> atomand notcoordinate -> boolean. I'm definitely going to change the values to booleans so I can negate it to invert the value. Thanks!You can change your
generate_coordinatesfunction to use list comprehensions instead of using nested maps: