Remove Linked List Elements

来源:互联网 发布:当代大学生创业数据 编辑:程序博客网 时间:2024/06/05 14:26

题目描述:

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

Example
Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
Return: 1 --> 2 --> 3 --> 4 --> 5

题目简单,一次ac,代码如下:


0 0
原创粉丝点击