Given an array of integers nums and an integer k, determine the total number of subarrays whose sum is exactly equal to k.
Note: A subarray is a contiguous, non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
k
Given an array of integers nums and an integer k, determine the total number of subarrays whose sum is exactly equal to k.
Note: A subarray is a contiguous, non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
k