I\'m working on this problem on Kattis called Firetrucks Are Red where we are basically running kruskal to see if a spanning tree exists.
Here\'s my code with copy-an