trie

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 1 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
}

type Trie

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

func New

func New() *Trie

func (*Trie) Add

func (t *Trie) Add(word string)

向Trie中添加一个新的单词word

func (*Trie) Contains

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

查询单词word是否在Trie中

func (*Trie) GetSize

func (t *Trie) GetSize() int

获得Trie中存储的单词数量

Jump to

Keyboard shortcuts

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