Need help with problem 500 E . New Year Domino

Revision en2, by K.Chaitanya, 2019-02-08 14:33:28

I am learning disjoint set union recently and implemented the solution to the problem New Year DominosMy submission Dont know why my solution is getting wrong on #7 test case. can anyone please help me fixing this. Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English K.Chaitanya 2019-02-08 14:33:28 56
en1 English K.Chaitanya 2019-02-08 12:39:45 385 Initial revision (published)