leetcode20200423每日一題-21. 合併兩個有序鏈表

1.題目 2.題目意思 合併兩個鏈表,很好理解~node 3.代碼 解法1: # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def mergeTwoLists(self, l1
相關文章
相關標籤/搜索