We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
to make two disjoing gragh, grouped. But the if statement which I was using was wrong, because "vis[y]" may be changed, but the other nodes of the "Y" disjoint graph will stay same. So when I changed if statement to
Kruskal (MST): Really Special Subtree
You are viewing a single comment's thread. Return to all comments →
For those who fail on 5th test. I was using
to make two disjoing gragh, grouped. But the if statement which I was using was wrong, because "vis[y]" may be changed, but the other nodes of the "Y" disjoint graph will stay same. So when I changed if statement to
it worked. Hope it will help! ;)