Minimum Spanning Tree
Minimum Spanning Tree
Twenty questions on minimum spanning trees, including Kruskal's and Prim's algorithms.
Min Cost to Connect All Points
mediumYou are given an array points representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi].
Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
hardGiven a weighted undirected connected graph with n vertices numbered from 0 to n - 1, and an array edges where edges[i] = [ai, bi, weighti] represents a bidirectional and weighted...
Maximize Spanning Tree Stability with Upgrades
hardYou are given an integer n, representing n nodes numbered from 0 to n - 1 and a list of edges, where edges[i] = [ui, vi, si, musti]: You are also given an integer k, the maximum...