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
Credits:
Special thanks to @mithmatt for adding this problem and creating all test cases.
Show Tags Linked List
Show Similar Problems (E) Remove Element (E) Delete Node in a Linked List