1、汇总概要
以下思路涵盖了归并、哈希、Comparator(Java自定义排序)等知识点
2、题目
You have k
lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k
lists.
We define the range [a,b] is smaller than range [c,d] if b-a < d-c
or a < c
if b-a == d-c
.
Example 1: