NeetCode #324LC-138MediumLinked ListNC 150NC 250
← Back to All Problems

#324 · #138 · Copy List with Random Pointer(复制带随机指针的链表)

📌 Problem Statement & Constraints

A linked list has nodes with an extra random pointer that may point to any node or None. Return a deep copy of the list: new nodes, with next and random pointers reproducing the original structure. Constraints: 0 <= n <= 1000.
🔒

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!