Prefix Sums
Problems on prefix sums, including the sum of any subarray in constant time, two-dimensional sums over rectangles, difference arrays for range updates, counting subarrays with a given sum and balancing a sequence.
The prefix sums article in the Basics section explains the technique. Related problem sets are under Two pointers, Fenwick tree and Range queries.
Problems
Journey in Fog#11141
Very hard
Speeding Ticket#11155
Very easy
Breed Counting#11159
Very easy
Max Flow#11163
Easy
COW#11177
Very easy
Paint by Letters#11206
Very hard
Just Green Enough#11212
Very hard
Stone Game#11213
Hard
Balanced Subsets#11242
Very hard
Game with array#11266
Very hard
Find XOR on a segment#11285
Very easy
Spiderman in Baku#11292
Medium
K-variance#11317
Very easy