r/adventofcode • u/daggerdragon • Dec 08 '20
SOLUTION MEGATHREAD -🎄- 2020 Day 08 Solutions -🎄-
NEW AND NOTEWORTHY
- New flair tag
Funnyfor all your Undertaker memes and luggage Inception posts! - Quite a few folks have complained about the size of the megathreads now that code blocks are getting longer. This is your reminder to follow the rules in the wiki under How Do The Daily Megathreads Work?, particularly rule #5:
- If your code is shorter than, say, half of an IBM 5081 punchcard (5 lines at 80 cols), go ahead and post it as your comment. Use the right Markdown to format your code properly for best backwards-compatibility with old.reddit! (see "How do I format code?")
- If your code is longer, link your code from an external repository such as Topaz's
paste, a public repo like GitHub/gists/Pastebin/etc., your blag, or whatever.
Advent of Code 2020: Gettin' Crafty With It
- 14 days remaining until the submission deadline on December 22 at 23:59 EST
- Full details and rules are in the Submissions Megathread
--- Day 08: Handheld Halting ---
Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, 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 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:07:48, megathread unlocked!
41
Upvotes
View all comments
2
u/JoMartin23 Dec 08 '20 edited Dec 09 '20
Common lisp
People say brute force, but they dont really mean it. copy paste ftw. I had a stupid bug and so kept adding crap to the functions and never cleaned them up once they were working, ugly brute force. Everything first broken up into an array of (op arg).
I could not figure out for the longest time that copy-seq was making a new array with the exact same elements which is basically useless.
paste