My attempt at a solution to Jane Street's November 2024 puzzle.
I think the approach was correct, but the level of precision required meant that further optimizations needed to be implemented, or this needed to be run at great scale. Would've been better to go for the analytical solution.