![Goproxy.cn](https://camo.githubusercontent.com/77ee435d23e827d4ff27bdf1d637cfbfbbb0be7a675c4fb5acba383eaf9067b5/68747470733a2f2f676f70726f78792e636e2f73746174732f6769746875622e636f6d2f7368676f706865722f676f646174612f6261646765732f646f776e6c6f61642d636f756e742e737667)
Basic data structures and operations written in Go which golang.org/pkg/container don't support such as stack, queue, etc.
list |
done |
trie |
๐ |
bitmap |
๐ |
bloom filter |
๐ |
lru |
๐ |
heap |
๐ |
stack |
๐ |
queue |
๐ |
dfs |
๐ |
bfs |
๐ |
union and find |
๐ |
skiplist |
โ |
b |
โ |
graph |
โ |
dancing Links |
โ |
segment tree |
โ |
huffman tree |
โ |
package main
import(
"github.com/googege/godata"
)
func main(){
// stack
stack := godata.NewStack(5)
stack.Push(1)
stack.Length()
stack.Top()
stack.Pop()
// trie
trie := NewTrie()
trie.Insert("hello world")
trie.Insert("hello China")
trie.Insert("hello My dear")
trie.Search("hello world")
trie.StartWith("he")
trie.Image("he")
}