Available question text
Given a binary tree where each node has left, right, and an extra random pointer to any node (or null), produce a deep copy of the tree so the cloned nodes replicate the original tree's left/right structure and random relationships. This requires traversing the tree and mapping original nodes to their clones (e.g., via a hash map or an in-place interleaving trick) to correctly assign random pointers.
Related questions
Continue with questions that share topics or the same question type.
- Find a Corresponding Node of a Binary Tree in a Clone of That Tree
Coding
- All Nodes Distance K in Binary Tree
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Amount of Time for Binary Tree to Be Infected
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Average of Levels in Binary Tree
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 1485. Clone Binary Tree With Random Pointer
Reported Feb 3, 2025 · 1 source report
STAFF
Source snapshot: Nov 12, 2026
View source