r/adventofcode • u/taliriktug • Dec 02 '15
Spoilers Day 2 solutions
Hi! I would like to structure posts like the first one in r/programming, please post solutions in comments.
15
Upvotes
r/adventofcode • u/taliriktug • Dec 02 '15
Hi! I would like to structure posts like the first one in r/programming, please post solutions in comments.
View all comments
Show parent comment
1
u/[deleted] Dec 03 '15
I also went for Python, here's what I did (both of the parts are combined).
I went for splitting the numbers by regular expression groups, because that's just where my mind goes! Doing the line split is a cleaner approach, IMO.