trieTree

package
v0.0.0-...-9fc3898 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 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 Node

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

func NewTrieNode

func NewTrieNode() *Node

type TrieTree

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

func NewTrieTree

func NewTrieTree() *TrieTree

func (*TrieTree) Clear

func (tt *TrieTree) Clear()

func (*TrieTree) Contains

func (tt *TrieTree) Contains(word string) bool

func (*TrieTree) Delete

func (tt *TrieTree) Delete(word string) (result bool)

func (*TrieTree) Insert

func (tt *TrieTree) Insert(words ...string)

func (*TrieTree) IsEmpty

func (tt *TrieTree) IsEmpty() bool

func (*TrieTree) PrefixNumber

func (tt *TrieTree) PrefixNumber(preStr string) int

func (*TrieTree) Size

func (tt *TrieTree) Size() int

Jump to

Keyboard shortcuts

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