Google, Facebook高频面试题 | Subarray Sum Equals K

先一起来看看题目: 题目描述 Given an array of integers and an integer k, you need to find the total number of contiguous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2Output: 2 [1, 1, 1]
相关文章
相关标签/搜索