trie

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrieNode

func NewTrieNode(char string) *trieNode

初始化 Trie 树节点

Types

type Trie

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

Trie 树结构

func NewTrie

func NewTrie() *Trie

初始化 Trie 树

func (*Trie) Find

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

在 Trie 树中查找一个单词

func (*Trie) Insert

func (t *Trie) Insert(word string)

往 Trie 树中插入一个单词

Jump to

Keyboard shortcuts

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