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)
相關文章
相關標籤/搜索