r/adventofcode • u/daggerdragon • Dec 02 '16
SOLUTION MEGATHREAD --- 2016 Day 2 Solutions ---
--- Day 2: Bathroom Security ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).
BLINKENLIGHTS ARE MANDATORY [?]
Edit: Told you they were 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!
20
Upvotes
View all comments
Show parent comment
6
u/TheNiXXeD Dec 02 '16
Preparation and practice. Before the time hits, I have tabs open to AoC, regex101.com, my IDE prepped with day folder, input file, part1 and part2 files with working empty functions in them, and a console command already ready to run them both.
Also, I try to keep things simple at first, and log lots of things, so I can avoid/catch bugs quickly. It's really easy to go down rabbit holes chasing bugs that may not even be necessary.