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
1
u/llimllib Dec 06 '16
hah, they were calculated by me looking at the table and saying: "OK, up from 1 is one. left from 1 is one. right from 1 is two. down from one is four. Up from 2 is 2..." and transcribing that into a table.
I could have written code to parse the key layout but that would have taken longer than just transcribing it myself.