Problem 1485 · Medium

Clone Binary Tree With Random Pointer

Deep-copy a binary tree whose nodes also carry random pointers, reusing one copy for every original node.

Open the interactive visualisation