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 371 / 386 800
2D range update 237 / 241 800
Bulk range update 185 / 197 900
Climbing 22 / 27 1000
Stair range update 158 / 186 1100