Subarray Sum Equals K
Medium
Hashing
Given an integer array and an integer k, print the total number of contiguous subarrays whose sum equals k.
Constraints
1 <= n <= 2 * 10^4 -1000 <= nums[i] <= 1000 -10^7 <= k <= 10^7
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.