摘要: 一维数组的动态和 public class Solution { public int[] RunningSum(int[] nums) { for(int i = 1;i<nums.Length;i++){ nums[i] +=nums[i-1]; } return nums; } } 我抬手就是 阅读全文
posted @ 2020-10-28 21:08 feiqi3 阅读(28) 评论(0) 推荐(0)
摘要: C#暴力解1:略 Dictionary方法:public int[] TwoSum(int[] nums, int target) { Dictionary<int, int> kkk = new Dictionary<int, int>(); for (int i = 0; i < nums.Le 阅读全文
posted @ 2020-10-23 23:32 feiqi3 阅读(41) 评论(0) 推荐(0)