You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
Traverse the tree, keep a hashtable with you and create a clone node for each node in the tree.
Hint 2
Start traversing the original tree again and connect each child pointer in the cloned tree the same way as the original tree with the help of the hashtable.