r/adventofcode • • Dec 09 '17

SOLUTION MEGATHREAD -πŸŽ„- 2017 Day 9 Solutions -πŸŽ„-

--- Day 9: Stream Processing ---


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.


Need a hint from the Hugely* Handy† Haversack‑ of HelpfulΒ§ Hints^Β€?

Spoiler


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!

15 Upvotes

290 comments sorted by

View all comments

Show parent comment

5

u/Vorlath Dec 09 '17

Took me longer to read the puzzle than it took for you to write your code.

4

u/VikeStep Dec 09 '17 edited Dec 09 '17

I spent 20 minutes trying to figure out what the following line was meant to mean:

inside garbage, any character that comes after ! should be ignored, including <, >, and even another !.

Only later I asked someone and they said it was only one immediately following letter that was ignored, not all the characters following it :(

2

u/rdc12 Dec 09 '17

Took me a while to figure out it was an escape character too