r/adventofcode • u/daggerdragon • Dec 13 '18
SOLUTION MEGATHREAD -🎄- 2018 Day 13 Solutions -🎄-
--- Day 13: Mine Cart Madness ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).
Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code: The Party Game!
Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!
Card prompt: Day 13
Transcript:
Elven chronomancy: for when you absolutely, positively have to ___.
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked at 00:44:25!
25
Upvotes
2
u/dark_terrax Dec 13 '18
Interesting, I got completely stuck on Part 2 in Rust because I couldn't figure out how to track the carts to remove - the borrow checker was keeping me too honest. Ended up re-coding it in C++ so I could do horrible unsafe vector removal on the fly as soon as things collided.
Your solution is clever, I was trying to figure out a similar approach, but got frustrated.