LeetCode Question · Jan 2022

Microsoft | Virtual Onsite | Trim All Duplicate Nodes In a N-ary Tree

1 upvote 344 views 1 reply

Question Details

Write a function to remove all duplicate nodes in a tree. You can assume a built in function return a boolean = isEqual(TreeNode node1, TreeNode node2)

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Binary Tree