20210417 [leetcode] 合并K个升序链表
https://leetcode-cn.com/problems/merge-k-sorted-lists/
方法1 分治
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def mergeKLists(self, l
原创
2021-04-17 18:10:32 ·
91 阅读 ·
0 评论