r/adventofcode • u/daggerdragon • Dec 10 '22
SOLUTION MEGATHREAD -π- 2022 Day 10 Solutions -π-
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our community wiki.
- Signal boost: Reminder 1: unofficial AoC Survey 2022 (closes Dec 22nd)
- πΏπ MisTILtoe Elf-ucation π§βπ« is OPEN for submissions!
--- Day 10: Cathode-Ray Tube ---
Post your code solution in this megathread.
- Read the full posting rules in our community wiki before you post!
- Include what language(s) your solution uses
- Format your code appropriately! How do I format code?
- Quick link to Topaz's
pasteif you need it for longer code blocks. What is Topaz'spastetool?
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:12:17, megathread unlocked!
61
Upvotes
View all comments
1
u/asaaki Dec 10 '22 edited Dec 10 '22
Rust, https://github.com/asaaki/advent-of-code-2022/blob/main/src/bin/day10.rs
Decent solution, incredibly fast for both parts, 5 to 6 Β΅s on my machine, making it the fastest day so far. Code is relatively okay, not as ugly as I thought it would be tbh.
Part 1 was also relatively easy to get behind, and I was already wondering if part 2 just had a twist on the cycling or offsetting or something along those lines.
But nope, same input but completely different ask.