Find number of subarrays with given sum (with Negative numbers) – LeetCode Solution [Medium]
In the previous post, we discussed about finding the total number of continuous subarrays of a given array (of non-negative numbers) whose sum equals to k. In this post we’ll include negative numbers in the given array arr.