You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix maximum Fenwick tree range values after updates (#15485)
* Fix maximum Fenwick tree range values after updates
* Add Fenwick regression doctests and 2000-item benchmark
Preserve all existing doctests while covering lost range maxima and decreases. Add an optional timeit benchmark for update and query workloads, as requested in #15485.
* Avoid unnecessary maximum Fenwick recomputation
Propagate only changed maxima and rebuild necessary buckets directly from disjoint child buckets. Preserve arbitrary overwrites, regression doctests and the benchmark.
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
0 commit comments