Prefix Sum
Subarrays that sum to k
From the Prefix Sum lesson: Precompute running totals; any range sum is one subtraction.
Step with → or Next. When a question pops up, make your guess. Switch to “Try your own” to run it on your input.
Getting the demo ready…