← Bloomberg questions
CodingReported in a candidate post, Jun 2020

Copy a list with random pointers, with and without a hash map

Filed under Bloomberg

A linked list node has a value, a next pointer and a random pointer that may point to any node in the list or be null. Create a deep copy of the list: new nodes with the same values, where next and…

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 Bloomberg questions

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