2 ms·
that's interesting. my example data did include the edge case that caught me out in part two, but didn't include it in a way that broke my first pass at a solu
by adbachman 3y ago
that's interesting.
my example data did include the edge case that caught me out in part two, but didn't include it in a way that broke my first pass at a solution.
funny piece is it didn't click until i submitted a wrong answer, read my code for a few minutes, added a bunch of logging, and then saw the trick. i looked back at the given example and it was right there the whole time, just not called out explicitly.