Subarray Sum Equals K — Prefix Sum
Count the unbroken spans of days whose net calories add up to a given target, counting each position-distinct span separately.
Prefix Sum · Medium
Count the unbroken spans of days whose net calories add up to a given target, counting each position-distinct span separately.
Prefix Sum · Medium