摘要: 方法一: 1 class Solution { 2 public int minimumTotal(List<List<Integer>> triangle) { 3 int res = Integer.MAX_VALUE; 4 int height = triangle.size(); 5 if( 阅读全文
posted @ 2020-07-14 22:42 小小码农-安 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 public static int[] intersect(int[] nums1, int[] nums2) { 2 int len1 = nums1.length, len2 = nums2.length, index = 0; 3 int[] res = new int[len1 < le 阅读全文
posted @ 2020-07-13 22:06 小小码农-安 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public int numIdenticalPairs(int[] nums) { 3 HashMap<Integer,Integer> index = new HashMap<Integer,Integer>(); 4 int total = 0; 5 阅读全文
posted @ 2020-07-12 22:00 小小码农-安 阅读(181) 评论(0) 推荐(0) 编辑