← Microsoft questions

Minimum Spanning Tree

Filed under Microsoft · Also reported at Samsung

Given a connected, undirected graph with weighted edges, find the subset of edges that connects all vertices without cycles and with the minimum total edge weight.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.