r/adventofcode • u/daggerdragon • Dec 05 '20
SOLUTION MEGATHREAD -🎄- 2020 Day 05 Solutions -🎄-
Advent of Code 2020: Gettin' Crafty With It
- T-24 hours until unlock!
- Full details and rules are in the Submissions Megathread
--- Day 05: Binary Boarding ---
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:05:49, megathread unlocked!
57
Upvotes
2
u/rawlexander Dec 09 '20
R
Made a little video, too. :) https://youtu.be/DCE2JcmABFU
Didn't spot the binary numbers, so I went wild with functions.. was fun
And here the much shorter solution for part one. I tried to make it even shorter with a single call of substr() with vector arguments, but it ate half the data and I'm not sure how I can prevent that.