Waymo logoWaymo
Coding·45 minMembers

Validate a Forest from (parent, child) Edges

Members only

Phone screen: given a graph described as a list of (parent, child) edges, decide whether it forms a valid forest (a disjoint set of trees). The candidate must design their own test cases. The whole ro...

SWE
graph
union-find
cycle-detection
testing
medium
Frequency
Single report
Last asked
2026-06-04
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...