This is the classic Minimum Spanning Tree problem. It tests your knowledge of Prim's or Kruskal's algorithm.
Enable JavaScript for the full StreamPrep guide.