UNPKG

libstl

Version:

Standard JavaScript/TypeScript Library: DoublyLinkedList, Stack, Queue, Heap, MaxHeap, MinHeap, PriorityQueue

28 lines (23 loc) 337 B
/** * The Trie class * * @class Trie */ class Trie { /** * Adds a word to the trie * * @param word A word to insert. */ public insert(word:string) { } /** * * @param word * @return {boolean} */ public contains(word:string) { return true; } } export = Trie;