Subarray sum equals k
Count the contiguous subarrays whose sum equals k; the array may contain negative numbers. Follow-ups: only report whether such a subarray exists, or return the longest one.
No answer yet. Write the first one; the best answer gets endorsed.
