Help us shape the future of Go! Take the 2026 Go Developer Survey

trie

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode() *Node

type Trie

type Trie struct {
	// contains filtered or unexported fields
}

func New

func New() *Trie

func (*Trie) Insert

func (t *Trie) Insert(word string)

Insert word into the Trie.

func (*Trie) Search

func (t *Trie) Search(word string) bool

Search Check if the given word can be matched fully.

func (*Trie) StartsWith

func (t *Trie) StartsWith(word string) bool

StartsWith Check if the given word can be matched by a white-listed prefix.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL