leetcode560.和为K的子数组(java):前缀和

题目 具体代码java class Solution { public int subarraySum(int[] nums, int k) { HashMap<Integer,Integer> map = new HashMap<>(); int preSum = 0; int count = 0; map.put(0,1)
相关文章
相关标签/搜索