上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 114 下一页
摘要: 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) 编辑
摘要: 1 package solution41; 2 import java.util.Stack; 3 class Solution { 4 public int solution(String str) { 5 Stack<Character> S = new Stack<Character>(); 阅读全文
posted @ 2020-03-06 18:19 Sempron2800+ 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 package solution39; 2 3 class Solution { 4 public int solution(String s1,String s2) { 5 int n1 = s1.length(); 6 int n2 = s2.length(); 7 int count = 阅读全文
posted @ 2020-03-06 10:20 Sempron2800+ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 package solution37; 2 3 class Solution { 4 public int solution(int n,int[] a) { 5 int[] preSum = new int[n+1]; 6 for(int i=1;i<=n;i++){ 7 preSum[i] 阅读全文
posted @ 2020-03-06 08:37 Sempron2800+ 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 package solution35; 2 3 import java.util.LinkedList; 4 5 public class Solution { 6 public LinkedList<Integer> list = new LinkedList<Integer>(); 7 pu 阅读全文
posted @ 2020-03-05 06:03 Sempron2800+ 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1 package solution34; 2 3 class Solution { 4 public int solution(int[][] m) { 5 int row = m.length; 6 int column = m[0].length; 7 int[][] dp = new int 阅读全文
posted @ 2020-03-04 16:25 Sempron2800+ 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 114 下一页