← Expedia questions

Clone a Linked List with random pointer

Filed under Expedia

Given a linked list of length n where each node contains an additional `random` pointer that could point to any node in the list or null, construct a deep copy of the list. Return the head of the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.