r/adventofcode • u/daggerdragon • Dec 04 '16
SOLUTION MEGATHREAD --- 2016 Day 4 Solutions ---
--- Day 4: Security Through Obscurity ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).
CONSTRUCTING ADDITIONAL PYLONS IS MANDATORY [?]
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
15
Upvotes
View all comments
Show parent comment
2
u/bildzeitung Dec 04 '16
Personally, I do two passes -- first one is "what just works". The second one, after I've got the answer, is cleaned up and more for public presentation.
Given this thread, there's also a usually a 3rd pass where I try to incorporate what the smarter people have done and learn something about Python's libraries, etc. :)
Last year, lots of learning on comprehensions. This year some new bits from the collections stuff.
Given that the problem is tightly specified, and the data can be considered clean, I don't worry too much about guarding that part of it. If I overengineer anything, it's in checking the progress of the algorithms in play.
Good times.