摘要: 题目: A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are  阅读全文
posted @ 2020-02-15 21:27 silentteller 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 自定义排序一个List<Pair<Integer, Integer>>,根据pair的key由小到大排序,如果相同,则根据pair的value由大到小排序。 最开始写的比较器如下: Collections.sort(list, new Comparator<Pair<Integer, I 阅读全文
posted @ 2020-02-15 16:31 silentteller 阅读(1651) 评论(0) 推荐(0) 编辑