Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
UnionFindSample
DisjointUnionSets
C# Class UnionFindSample.DisjointUnionSets
Show file
Open project: shendongnian/code
Class Usage Examples
Public Methods
Method
Description
DisjointUnionSets
(
int
n
) :
System
Find
(
int
x
) :
int
MakeSet
( ) :
void
Union
(
int
x
,
int
y
) :
void
Method Details
DisjointUnionSets()
public
method
public
DisjointUnionSets
(
int
n
) :
System
n
int
return
System
Find()
public
method
public
Find
(
int
x
) :
int
x
int
return
int
MakeSet()
public
method
public
MakeSet
( ) :
void
return
void
Union()
public
method
public
Union
(
int
x
,
int
y
) :
void
x
int
y
int
return
void