560.Subarray Sum Equals K

Description Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = [1,1,1], k = 2 Output: 2 Note: The le
相关文章
相关标签/搜索