3217. Delete Nodes From Linked List Present in Array
## 思路
先把nums轉成set
掃linked list時, 如果下一個node的值在set裡面就跳過去
## Code
```python
class Solution:
def modifiedList(self, nums: List[int], head: Optional[ListNode]) ->
Optional[ListNode]:
nums = set(nums)
dummy = ListNode(-1, head)
curr = dummy
while curr.next:
if curr.next.val not in nums:
curr = curr.next
else:
curr.next = curr.next.next
return dummy.next
```