leetcode203-Remove Linked List Elements

难度:easy 题目: 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 思路:删掉链表中value=val的节点
相关文章
相关标签/搜索