We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9a1cf commit 54ebb12Copy full SHA for 54ebb12
src/main/java/g0501_0600/s0560_subarray_sum_equals_k/Solution.java
@@ -7,7 +7,9 @@
7
8
public class Solution {
9
public int subarraySum(int[] nums, int k) {
10
- int size = nums.length, tempSum = 0, ret = 0;
+ int size = nums.length;
11
+ int tempSum = 0;
12
+ int ret = 0;
13
Map<Integer, Integer> sumCount = new HashMap<>();
14
sumCount.put(0, 1);
15
for (int i : nums) {
0 commit comments