← All problems
Medium · Linked List

Copy List With Random Pointer

Deep-copy next and random pointers so they point into the copied list.

Full problem and submission ↗
main.js

Console

Ready