Static range query for ANY associative op in O(1): split into √n blocks, precompute prefix / suffix / between, combine at most three disjoint pieces. Works for non-idempotent ops (sum, product, xor) that a sparse table cannot.
Query: O(1)Build: O(n log log n)Space: O(n log log n)Update: O(√n)Associative op (idempotence NOT required)