You now have four powerful array techniques:
Prefix sums: Precompute cumulative sums for range queries. Works in 1D and 2D.
Difference arrays: The inverse of prefix sums. Enables range updates.
Two pointers: Use sorted structure to find pairs in without extra space.
Sliding window: Solve subarray problems in by processing each element at most twice. These techniques combine with everything else you'll learn. learn them, and half of competitive programming problems become tractable. In the next section, I'll show you stacks, a simple data structure with surprising power.