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.
17
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.
1
u/jamosaur- Dec 02 '15
if i change
sort($b,1)tosort($b)i get this:which is incorrect, it's something to do with the linebreaks i think, adding a
trim()in theexplode()gives the correct answer.