Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Algorithms
QuickFindUF
Connected
Algorithms.QuickFindUF.Connected C# (CSharp) Method
QuickFindUF Class Documentation
显示文件
Open project: beginor/practice
Connected()
public
method
public
Connected
(
int
p
,
int
q
) :
bool
p
int
q
int
return
bool
public bool Connected(int p, int q) { return id[p] == id[q]; }
QuickFindUF
Connected
Find
QuickFindUF
Union