摘要: 1 package solution47; 2 import java.util.*; 3 class Solution { 4 public int solution(int n, int[] nums1, int[] nums2) { 5 HashMap<Integer, Integer> ma 阅读全文
posted @ 2020-03-07 17:11 Sempron2800+ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 package solution46; 2 import java.util.*; 3 class Solution { 4 public long solution(int n,long[] nums) { 5 long maxNum = 0; 6 long maxSecNum = 0; 7 阅读全文
posted @ 2020-03-07 08:20 Sempron2800+ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 package solution45; 2 import java.util.*; 3 class Solution { 4 public int solution(int n, int[] nums) { 5 HashMap<Integer, Integer> map = new HashMa 阅读全文
posted @ 2020-03-07 06:18 Sempron2800+ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 package solution44; 2 3 import java.util.*; 4 class Solution { 5 public int solution(int n,int[] nums) { 6 Arrays.sort(nums); 7 int maxVal = nums[n- 阅读全文
posted @ 2020-03-07 05:58 Sempron2800+ 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1 package solution43; 2 import java.util.*; 3 class Solution { 4 public int solution(int a,int b,int c) { 5 int df1 = Math.abs(a-b); 6 int df2 = Math. 阅读全文
posted @ 2020-03-07 05:46 Sempron2800+ 阅读(129) 评论(0) 推荐(0) 编辑