Skip to content

XCLZ-STUDIO/xUnionFind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xUnionFind

一个简单使用的并查集

uf = UnionFind()
uf.union(1, 2)
uf.union(3, 4)
uf.union(5, 6)
uf.union(1, 3)
uf.union(6, 4)

assert uf.connected(1, 6)

About

一个简单使用的并查集

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages