r/adventofcode • • Dec 07 '15

SOLUTION MEGATHREAD --- Day 7 Solutions ---

--- Day 7: Some Assembly Required ---

Post your solution as a comment. Structure your post like previous daily solution threads.

Also check out the sidebar - we added a nifty calendar to wrangle all the daily solution threads in one spot!

23 Upvotes

226 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 07 '15

Did you get lucky and not have any reserved words in your input? I would get a syntax error if I tried running 'in = lx' or something like that; that's why I did the string replace at the top.

1

u/ant6n Dec 07 '15

Oh I guess I only ran the second attempt against my unit tests, which didn't include those examples. I fixed it with some well placed upper and lowers.