Grrrr.... lower right hand corner != upper left ha...
# advent-of-code
t
Grrrr.... lower right hand corner != upper left hand corner. Aka "why are all my answers off by 2?!"
l
It's always very handy to write some JUnit tests through both parts A/B so that you know you haven't broken anything 🙂 - I've started writing them since Day 9, I think 😆
j
Ha! Today I mixed up the
second
and
third
property of a
Triple
in my
maxBy
and got very angry when it kept selecting a window size of 300 as the solution...
😊 1
t
Yeah, this is why I write unit tests for the example and my answer when I get it. Because I almost always go back and clean things up or fundamentally change it, like today.
j
Heh, spent about 30 minutes “debugging” this morning any my error was formatting. Had a space after the comma.
t
Oh ran into that too. Frankly I would expect AoC to take it with spaces.