Remove all elements from a linked list of integers that have value val.
Example :
Input: 1->2->6->3->4->5->6, val = 6
Output: 1->2->3->4->5删除链表中所有指定值的结点。
按照题意做即可。
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Remove all elements from a linked list of integers that have value val.
Example :
Input: 1->2->6->3->4->5->6, val = 6
Output: 1->2->3->4->5删除链表中所有指定值的结点。
按照题意做即可。