Subarray Sum Equals K
Problem
Given an array of integers nums
and an integer k
, return the total number of continuous subarrays whose sum equals to k
.
For example:
Solution
Last updated
Was this helpful?
Given an array of integers nums
and an integer k
, return the total number of continuous subarrays whose sum equals to k
.
For example:
Last updated
Was this helpful?