r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
14
Upvotes
View all comments
Show parent comment
1
u/Xgamer4 Dec 04 '15
slowly raises hand
Python instead of Go, but mostly. I remembered to update the slice range, but didn't update the string to match to. Didn't notice at first, started researching multithreading in python, realized brute forcing is a better use of my time because I'm at work with a beefy computer, looked over my code and realized my oops. Turns out a 6 - length string will never match a 5 - length string. :/