DatabricksCoding·55 minMembers
Uniformly Connect Node Groups
Members only
Given several connected components, return a random minimum-size edge set that connects all groups into one connected graph, with the edge set sampled uniformly from all valid solutions.
SWE
graph
sampling
math
hard
Frequency
Low · New
Last asked
2026-05-05
Stage
phone-screen
Log in to continue reading the full content
