Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Trie

Hierarchy

  • Trie

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _map

_map: Map<string, TrieNode>

Methods

Private _complete

  • _complete(node: TrieNode, word?: string, result?: string[]): void
  • Parameters

    • node: TrieNode
    • Default value word: string = ""
    • Default value result: string[] = []

    Returns void

add

  • add(word: string): void

complete

  • complete(word: string): string[]

exists

  • exists(word: string): boolean

Private findLeaf

Generated using TypeDoc