leetcode-92-反轉鏈表②

題目描述: 方法一: class Solution: def reverseBetween(self, head: ListNode, m: int, n: int) -> ListNode: dummy = ListNode(0) dummy.next = head pre = dummy for i in range(m-
相關文章
相關標籤/搜索