LeetCode203. Remove Linked List Elements

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 移除链表中对应的数字,思路很简单…只需注意链表的第一个特殊处理一
相关文章
相关标签/搜索