DSA Key Problems

Subarray Sum Equals K

Given an integer array and a target k, return the number of contiguous subarrays whose elements sum to k.