2018/02/17 code puzzles jane-street

This was the toughest Jane Street puzzle I've solved so far.

I lost the actual solution, so had to solve it again. Last time it was a brutal slough that involved caching intermediate results and manual exploration, and this time the algorithm runs from zero to hero in ten seconds flat.