DSU
struct DSU
Methods
__init__
__init__(out self, n: Int)
merge
merge(mut self, a: Int, b: Int) -> Int
same
same(mut self, a: Int, b: Int) -> Bool
leader
leader(mut self, a: Int) -> Int
size
size(mut self, a: Int) -> Int
groups
groups(mut self) -> List[List[Int]]