摘要: from heapq import heappush, heappop class Solution: def mergeKLists(self, lists): q = [] for i,head in enumerate(lists): if head: heappush(q, (head.va 阅读全文
posted @ 2020-02-28 20:13 bonelee 阅读(1602) 评论(0) 推荐(0) 编辑