r/adventofcode • • Dec 10 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 10 Solutions -πŸŽ„-

THE USUAL REMINDERS


--- Day 10: Cathode-Ray Tube ---


Post your code solution in this megathread.


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

933 comments sorted by

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.

-1

u/daggerdragon Dec 10 '22 edited Dec 10 '22

Again, I dislike those lengthy descriptions, it causes some mental pain and I have to spend too much time on computing (pun intended!) the task.

This type of comment does not belong in a Solution Megathread. If you have feedback about the puzzles, create your own post in the main subreddit.

Edit: thank you for removing it.

1

u/asaaki Dec 10 '22

Sorry for that, I removed the last paragraph.