摘要:
题目: 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 阅读全文
摘要:
问题描述: 自定义排序一个List<Pair<Integer, Integer>>,根据pair的key由小到大排序,如果相同,则根据pair的value由大到小排序。 最开始写的比较器如下: Collections.sort(list, new Comparator<Pair<Integer, I 阅读全文