【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 """
相关文章
相关标签/搜索