Remove all elements from a linked list of integers that have value val
.
Have you met this question in a real interview?
Example
Given 1->2->3->3->4->5->3
, val = 3, you should return the list as 1->2->4->5
时间: 2024-12-10 18:53:27
Remove all elements from a linked list of integers that have value val
.
Have you met this question in a real interview?
Example
Given 1->2->3->3->4->5->3
, val = 3, you should return the list as 1->2->4->5