trie

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 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 {
	Value int
	// contains filtered or unexported fields
}

type Trie

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

func NewTrie

func NewTrie() *Trie

func (*Trie) Get

func (trie *Trie) Get(word string) *Node

func (*Trie) Keys

func (trie *Trie) Keys() []string

func (*Trie) KeysWithPrefix

func (trie *Trie) KeysWithPrefix(prefix string) []string

func (*Trie) Put

func (trie *Trie) Put(word string) *Node

Put adds a word to the Trie

Jump to

Keyboard shortcuts

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