Project Euler #107: Minimal network

  • + 1 comment

    Kruskal's Algorithm is also worked for me. but we need to implement Disjoint sets with Union by rank and path compression

    • [deleted]
      + 0 comments

      Yes I know. but Prim should be ideally and morally used in case of more edges than vertices.