← 返回 bloomberg 的题目列表Remove Linked List Elements
类型:online_judge
Remove all elements from a linked list of integers that have value val. Implement a function removeElements(head, val) where head is the head of the list, and val is the value to remove.
Example
Input
6
1 2 6 3 4 5 6