Minimum Spanning Tree code not working properly
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.