Skip to content

Latest commit

 

History

History

959-RegionsCutBySlashes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Regions Cut By Slashes

Problem can be found in here!

Solution: Disjoint Set

Time Complexity: O(n^2*a(n)), Space Complexity: O(n^2), where n is the length of grid and $\alpha(\cdot)$ is the inverse ackermann function, which grows slowly.