package
0.5.1
Repository: https://github.com/sta-golang/go-lib-utils.git
Documentation: pkg.go.dev

# README

algorithm 算法包

数据结构包 ./data_structure

  • HashSet (set/hashset.go[stringset.go]) author: @TheSevenSky
  • 二叉树 (binary_tree.go) author: @TheSevenSky
  • 链表 (linked_list.go) author: @TheSevenSky
  • 优先队列 (priority_queue.go) author: @zk-kiger
  • 队列 (queue.go) author: @TheSevenSky
  • 栈 (stack.go) author: @TheSevenSky

算法库

  • 并查集 (union_find.go) author: @TheSevenSky

# Packages

@Author : zk_kiger.
No description provided by the author

# Functions

NewUnionFind 构造函数 参数是一个interface的切片比如传入一个字符串切片 []interface{}{"hello", "world", "golang"}.

# Structs

UnionFind 带路径压缩的并查集 注意: 这个并不是线程安全的如果多线程访问则需要加锁.