LeetCode 0203 - Remove Linked List Elements
Remove Linked List Elements
Desicription
Remove all elements from a linked list of integers that have value val.
Example:
1 | Input: 1->2->6->3->4->5->6, val = 6 |
Solution
1 | /** |
Remove all elements from a linked list of integers that have value val.
Example:
1 | Input: 1->2->6->3->4->5->6, val = 6 |
1 | /** |