【Leetcode】203. Remove Linked List Elements

刪除鏈表中值爲val的節點: 方法1 雙指針法 pNode 在前,cur 在後,遇到val跳過,再讓pNode的next指向cur class Solution1(object): def removeElements(head, val): """ :type head: ListNode :type val: int :rtype: ListNode """
相關文章
相關標籤/搜索