LeetCode Question · May 2021 · Los Angeles

Amazon | Interview question, root of largest tree in a forest

3 upvotes 1,246 views 1 reply

Question Details

Given a forest(one or more disconnected\xA0trees ), find the root of the largest tree i/p: child -> parent relationship. The key is the child and value is the corresponding tree.\xA0\xA0 {{1 ->...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Binary Tree