Https://ide.codingblocks.com/s/210293 have implemented MaxST using kruskal's

I have implemented it using MaxST using kruskal’s and then,sorting the weights that are not inlcuded in MaxST.
but I am getting WA.

@Adarshrajpandey
store should have m edges
So you should iterate from 0 to m-1 not n-1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.