Linked List Deletion
Given a singly linked list node
, and an integer target
, return the same linked list with all nodes whose value is target
removed.
Constraints
n ≤ 100,000
wheren
is the number of nodes innode
https://binarysearch.com/problems/Linked-List-Deletion
Examples
Example 1
Input
- node =
- target =
1
Output
- answer =
Leave a comment