arrow_back Back to Challenges

#138 Copy List with Random Pointer

Medium Acceptance 0%
description

Problem Description

A linked list of length `n` is given such that each node contains an additional random pointer, which could point to any node in the list, or `null`. Construct a deep copy of the list.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Hash Table Linked List

Hiring Companies

Oracle Uber
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude