Skip to content

alovn/trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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
}

Releases

No releases published

Packages

No packages published

Languages