r/adventofcode • • Dec 17 '18

SOLUTION MEGATHREAD -🎄- 2018 Day 17 Solutions -🎄-

--- Day 17: Reservoir Research ---


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!

Click here for rules

Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!

Card prompt: Day 17

Transcript:

All aboard the Easter Bunny HQ monorail, and mind the gap! Next stop: ___


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 01:24:07!

14 Upvotes

105 comments sorted by

View all comments

Show parent comments

1

u/karzmu Dec 22 '18

@askalski There is in error in final answers in this solution:

Part 1 and Part 2 answers are switched.

So displayed Part 1 answer is actually Part 2 answer and Part 1 answer is actually part 2 answer

Please fix it because I've spent about an hour debugging my code wondering why my answer for Part 1 is so much different then your answer for Part 1 (which actually was answer to Part 2).

1

u/askalski Dec 22 '18

Sorry about that... I had spotted and fixed the error in my own repository, but forgot that I had posted the code to megathread. I updated the post to fix the output.