GALACTIK - Editorial

please have a look at my code ia m using the same logic along with bfs but getting wa

i have solved the question using disjoint set data structure . I have heavily commented my code if anybody wants to solve by using disjoint set and finding difficulty here is my code.

Happy Coding :slight_smile:

can anyone tell me why we did (components-2)*global_min .

can anyone tell me why we did (components-2)*global_min .

Sildenafil citrate, known by the brand name Viagra, is one of the most widely used and effective drugs to treat ED, or erectile dysfunction. In many cases, one tablet is all that is needed to improve blood circulation and help to produce a normal and maintainable erection.

is solution solved?