PracHub
QuestionsLearningGuidesInterview Prep

Quick Overview

Clone a linked list whose records use arbitrary IDs for next and random pointers. Translate every identity and pointer through supplied fresh IDs while preserving record order, values, null pointers, and the original inputs.

  • medium
  • Grammarly
  • Coding & Algorithms
  • Software Engineer

Deep-Copy a Linked List with Random Pointers

Company: Grammarly

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Quick Answer: Clone a linked list whose records use arbitrary IDs for next and random pointers. Translate every identity and pointer through supplied fresh IDs while preserving record order, values, null pointers, and the original inputs.

Last updated: Jul 18, 2026
Loading…
PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Recover a Rooted Tree from Depth-Annotated Preorder - Grammarly (easy)
  • Deep-Copy a Linear Linked List - Grammarly (medium)
  • Reverse a Singly Linked List - Grammarly (medium)
  • Implement a Transactional Key-Value Store - Grammarly (medium)