Minimum Spanning Tree (Kruskal)
Medium
Graphs
Given a connected, undirected, weighted graph, print the total weight of its minimum spanning tree.
Constraints
1 <= n <= 10^4 1 <= m <= 10^5 1 <= w <= 10^6
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.