package
Version:
v0.0.0-...-4e682c9
Opens a new window with list of versions in this module.
Published: Jan 8, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
题目
Implement a trie with insert, search, and startsWith methods.
Note:
You may assume that all inputs are consist of lowercase letters a-z.
解题思路
见程序注释
Documentation
¶
Trie 是便于 word 插入与查找的数据结构
Constructor initialize your data structure here.
Insert a word into the trie.
Search returns true if the word is in the trie.
StartsWith returns true if there is any word in the trie that starts with the given prefix.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.