Bloomberg logoBloomberg
Coding·60 minMembers

Find Tree Root from Edge List

Members only

Given an edge list `[node, [children]]` describing a tree of log nodes, find the root — the single node that is never anyone's child. The Bloomberg twist is that the input may include duplicates or no...

SWE
tree
graph
hashmap
set
easy
Frequency
Single report
Last asked
2026-02-25
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...