implement_trie_prefix_tree

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MulanPSL-2.0 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 {
	// contains filtered or unexported fields
}

func Constructor

func Constructor() Trie

func (*Trie) Insert

func (t *Trie) Insert(word string)

func (*Trie) Search

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

func (*Trie) SearchPrefix

func (t *Trie) SearchPrefix(prefix string) *Trie

func (*Trie) StartsWith

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

Jump to

Keyboard shortcuts

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