203. Remove Linked List Elements

Description

Remove all elements from a linked list of integers that have value val.

Constraints

Approach

Examples

Input: 1->2->6->3->4->5->6, val = 6

Output: 1->2->3->4->5

Solutions

Follow up

Last updated

Was this helpful?