Back to Questions

Number of Operations to Make Network Connected (Union-Find)

132.9K viewsAsked at Salesforce
Medium

Question Explain

Given $n$ computers and connections, find the minimum number of cable moves required to make all computers connected. Model as a graph and use Union-Find.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Number of Operations to Make Network Connected (Union-Find) - Interview Question