tries

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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 interface {
	AddCount()
	Insert(interface{})
	Next(interface{}) Node
}

type Trie

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

func NewTrie

func NewTrie() *Trie

func (*Trie) Add

func (t *Trie) Add(s string)

func (*Trie) Search

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

type TrieNode

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

func NewTrieNode

func NewTrieNode(value interface{}) *TrieNode

func (*TrieNode) AddCount

func (tn *TrieNode) AddCount()

func (*TrieNode) Insert

func (tn *TrieNode) Insert(value interface{})

func (*TrieNode) Next

func (tn *TrieNode) Next(value interface{}) Node

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL