r/adventofcode • • 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.

14 Upvotes

161 comments sorted by

View all comments

Show parent comment

1

u/Moontayle Dec 02 '15

Pretty close to what I did. I used a TreeSet for the first solution since I was only interested in the first item (and it has that handy first() method).