摘要: class Solution { public int countGoodTriplets(int[] arr, int a, int b, int c) { int n = arr.length, res = 0; for(int i = 0; i < n - 2; i++) { for(int 阅读全文
posted @ 2020-08-04 15:52 Sexyomaru 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 方法一:滑动窗口 class Solution { public int[] smallestRange(List<List<Integer>> nums) { int size = nums.size(); Map<Integer,List<Integer>> map = new HashMap< 阅读全文
posted @ 2020-08-04 10:30 Sexyomaru 阅读(166) 评论(0) 推荐(0) 编辑