赞
踩
https://leetcode-cn.com/problems/subarray-sum-equals-k/
<方法一>:枚举
- public class Solution {
- public int subarraySum(int[] nums, int k) {
- int count = 0;
- for (int start = 0; start < nums.length; ++start) {
- int sum =
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。