public class IntegerUnionFind extends Object
| Constructor and Description |
|---|
IntegerUnionFind() |
IntegerUnionFind(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
find(int x) |
int |
size() |
void |
union(int x,
int y)
union the equiv classes of x and y
|