[LintCode] Remove Linked List Elements 移除链表元素

Posted Grandyang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[LintCode] Remove Linked List Elements 移除链表元素相关的知识,希望对你有一定的参考价值。

 

Remove all elements from a linked list of integers that have value val.

 
Example

Given 1->2->3->3->4->5->3, val = 3, you should return the list as 1->2->4->5

 

以上是关于[LintCode] Remove Linked List Elements 移除链表元素的主要内容,如果未能解决你的问题,请参考以下文章

lintcode-easy-Reverse Linked List

lintcode-medium-Reverse Linked List II

[LintCode] Linked List Cycle

lintcode-easy-Flatten Binary Tree to Linked List

Lintcode102.Linked List Cycle

lintcode-medium-Swap Two Nodes in Linked List