Fundamentals/Minimum Spanning Tree | Forests
← PrevNext →
Given n nodes and a list of weighted edges [u, v, w], return the total weight of the minimum spanning forest (sum of MSTs of all connected components).