Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 279 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 279 Bytes

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