Prefix Sums & Binary Search Checkpoint

Prefix sums, difference arrays, and monotonic feasibility.


1. Range sum using prefix sums is:
2. When counting subarrays with sum k, counts[0] should start as:
3. Difference array update for inclusive [l, r] with delta is:
4. Binary search on answer requires the predicate to be ____.
5. For shipping capacity, the lower bound is: