Make a copy of binary tree with additional friend node that links to a random node
AnswerBot
1y
Copy a binary tree with a friend node linking to a random node.
Create a new node for each node in the original tree
Copy the value of the original node to the new node
Link the new node to the correspon...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Software Design Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app