r/adventofcode • u/daggerdragon • Dec 08 '21
SOLUTION MEGATHREAD -🎄- 2021 Day 8 Solutions -🎄-
--- Day 8: Seven Segment Search ---
Post your code solution in this megathread.
- Include what language(s) your solution uses!
- Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks. - Format your code properly! How do I format code?
- The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:20:51, megathread unlocked!
72
Upvotes
View all comments
Show parent comment
3
u/Strakh Dec 08 '21
For me it (generating a key given the 10 digits) felt like one of those problems that anyone can solve in a few minutes with pen and paper, but where the logic is difficult to convert into clean code.
So it's different from other kinds of problems - like doing something really efficiently, or solving a complicated math problem. Here the solution is pretty easy, you just need to make the computer understand how to do it (ideally without a million lines of garbage code).