← Amazon questions

Clone binary tree with random pointers

Filed under Amazon · Also reported at Walmart

Clone a binary tree where each node has a left, right, and a random pointer that can point to any node in the tree.

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

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