劍指offer python版 25.合併排序的兩個鏈表

class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def Merge(self, pHead1, pHead2): if pHead1 is None: return pHead2
相關文章
相關標籤/搜索