Medium · Prefix Sum

Subarray sum equals k

Count contiguous subarrays whose values sum to a target.

Subarray sum equals k memory room
The stacked tags under the lens spring apart and pull a taut line back to two shelf jars that level themselves to exactly the same fill. — The complement prefix already hangs.

Retrieval check

With the notes hidden, what pattern should this room bring back?

Related free rooms