Module Difference array

Difference array

Frequency: 7/10

An application of prefix sum.

Resources

- [Codeforces blog: An Introduction To Difference Arrays](https://codeforces.com/blog/entry/78762)

Problems

Range update 362 / 376 800
2D range update 232 / 236 800
Bulk range update 180 / 191 900
Climbing 20 / 24 1000
Stair range update 156 / 183 1100