trie

package
v0.0.0-...-1ed9750 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 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 Trie

type Trie struct {
	Root *TrieNode
}

func NewTrie

func NewTrie() *Trie

func (*Trie) Delete

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

func (*Trie) Insert

func (t *Trie) Insert(word string)

func (*Trie) Search

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

func (*Trie) StartsWith

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

type TrieNode

type TrieNode struct {
	Children  map[rune]*TrieNode
	IsWordEnd bool
}

func NewTrieNode

func NewTrieNode() *TrieNode

Jump to

Keyboard shortcuts

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