_01_220

package
v0.0.0-...-85ba926 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 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
}

*

@author: CodeWater
@since: 2024/2/9
@desc: 208. 实现 Trie (前缀树)

*

func Constructor

func Constructor() Trie

func (*Trie) Insert

func (this *Trie) Insert(word string)

func (*Trie) Search

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

func (*Trie) StartsWith

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

type WordDictionary

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

func Constructor

func Constructor() WordDictionary

func (*WordDictionary) AddWord

func (this *WordDictionary) AddWord(word string)

func (*WordDictionary) Search

func (this *WordDictionary) Search(word string) bool

Jump to

Keyboard shortcuts

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