Learn · DSA
Answer questions about any slice of an array fast.
Range sum, min, and max
Delay range updates until needed
Prefix sums with bit tricks
Constant-time range minimum
Split the array into blocks