Skip to content

alovn/trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fe38e76 · May 4, 2022

History

7 Commits
Apr 23, 2022
Apr 23, 2022
May 4, 2022
May 3, 2022
May 4, 2022
May 4, 2022

Repository files navigation

trie

Trie tree by golang

example

package main

import (
    "fmt"
    "github.com/alovn/trie"
)

func main() {
    //creat a trie
    t := trie.New()

    //add keys
    t.Add("hello")

    //find keys
    exists := t.Find("hello")
    fmt.Println(exists) //true

    //remove keys
    t.Remove("hello")

    exists = t.Find("hello")
    fmt.Println(exists) //false
}

About

golang trie tree

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages