Minimum Spanning Tree code not working properly

Revision en2, by ss_96, 2017-09-20 17:44:50

I was trying to solve this question:link

My solution:solution

The solution is not able to pass all test cases.Please help and suggest what is wrong in the implementation.I have used kruskal algorithm in the 'min_' function of the code.

Thanks.

Tags c++, minimum spanning tree, graph, kruskal

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ss_96 2017-09-20 17:44:50 18
en1 English ss_96 2017-09-20 17:44:21 477 Initial revision (published)