BloombergCoding·60 minMembers
Subway / Network Connectivity
Members only
Given a network of subway stations described as adjacency data, build a function that returns whether any two given stations are connected. Tests graph modeling, choice between BFS / DFS / Union-Find,...
SWE
graph
union-find
bfs
dfs
testing
medium
Frequency
Low
Last asked
2026-02-25
Stage
onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
