#3217
Delete Nodes From Linked List Present in Array
pupil · 570 · lc medium +29 · premium · 69.5% accepted · 1,083 likes · top 77%
Description
You are given integer array nums and the head of a singly linked list. Remove every node whose value appears in nums. Return the head of the modified list.
Code
1
2
3
4
5
6
7
8