https://ide.codingblocks.com/s/43059
what is the error in the code?
Union Find algorithm
Hey Ankur, mention the problem’s link also.
There is no any question bhaiya, just I am trying to implement union-find algo
The code is working fine. But this is not union find i suppose. This is just a graph.
bhaiya,it is always giving “cycle present” as output.