Skip to content

Latest commit

 

History

History

0203. Remove Linked List Elements

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Related Topics

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