20%off off — LaunchSpecial
Exercises/#30 Copy List with Random Pointer
#30

Copy List with Random Pointer

Medium🔗 Linked Lists
100 XP

Problem

A linked list where each node has a next and random pointer. Create a deep copy of the list.

Examples

Input: [[7,null],[13,0],[11,4],[10,2],[1,0]]
Output: Deep copy with same structure
linked-listhash-map
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

30 / 150

Your Solution

⚡ JavaScript

to save progress and use AI features