Trie

package
v0.0.0-...-de9bdf8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AlphabetSize = 26

Limit the alphabet to lowercase letters a-z

Variables

This section is empty.

Functions

func NewNode

func NewNode() *node

Types

type Trie

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

func NewTrie

func NewTrie() *Trie

func (*Trie) Delete

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

Delete

func (*Trie) Insert

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

-------------------- Trie methods -------------------- Insert

func (*Trie) Search

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

Search

Jump to

Keyboard shortcuts

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