445. Add Two Numbers II

題目 我的代碼(打敗了99.6%) 簡單來說就是先將list轉化爲int,然後計算,然後再轉換爲int。 # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def addTwoNu
相關文章
相關標籤/搜索