NeetCode #322LC-3217MediumLinked List
← Back to All Problems

#322 · #3217 · Delete Nodes From Linked List Present in Array(从链表中移除在数组中存在的节点)

📌 Problem Statement & Constraints

You are given the head of a linked list containing unique integers and an array nums. Remove all nodes whose value appears in nums and return the head. Constraints: 1 <= n <= 10^5, 1 <= nums.length <= 10^5, all values distinct.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!