Need Help in a Graph Problem

Revision en1, by holmes_324, 2023-05-20 15:28:45

I didn't understand what paint(v) means. Can someone please explain me. Also I didn't understand the editorial solution of this problem. Can't we just count unconnected black ans white components and output min of them Problem link Thanks in advance!

Tags graphs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English holmes_324 2023-05-20 15:28:45 332 Initial revision (published)