← KLA questions
CodingReported in a candidate post, Jul 2025

Clone a Linked List with Random Pointers

Filed under KLA · Also reported at Maersk, OneDirect, Yatra.com

The question

Create a deep copy of a linked list where each node contains an additional random pointer that can point to any node in the list or null.

No write-up yet. Related questions below have one.

Related KLA questions

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