Got it right on the second go. ~250ms but seems to be non-deterministic (slightly different intermediate results on different invocations) and can't see why, will look at that later and also try and speed it up a bit more.
Going back to Day 15 first though as I think I've got a much faster approach.
Day 16.
First attempt approached it all wrong.
Got it right on the second go. ~250ms but seems to be non-deterministic (slightly different intermediate results on different invocations) and can't see why, will look at that later and also try and speed it up a bit more.
Going back to Day 15 first though as I think I've got a much faster approach.