by slimeboss · 2y ago · 0 comments
The current approach I’m using takes tens of milliseconds for some large test cases (which is great!), however I’d like to improve on it more so I could eventually run much bigger cases at real-time interactive speeds too.
If it doesn't have inverse so that you cannot subtract prefix sum, sparse table can be used.