Back to QuestionsPractice with This Question
Number of Operations to Make Network Connected (Union-Find)
132.9K views•Asked 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.