Skip to content

Latest commit

 

History

History

547

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Solution

  • It's like to mark connected graph
  • We can use Disjoint Set to solve it
    • We need to be careful about optimizing with path compression