Goldman SachsCodingMembers
Largest Tree in a Forest
Members only
Given a dict mapping child node id -> parent node id that encodes a forest, return the root id of the tree with the most nodes; on a tie, return the smallest root id. Build a parent->children adjacenc...
SWE
tree
bfs
hashmap
medium
Frequency
Low
Last asked
2026-08-12
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
