
trie树
景行cmy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode 745. Prefix and Suffix Search
Given manywords,words[i]has weighti. Design a classWordFilterthat supports one function,WordFilter.f(String prefix, String suffix). It will return the word with givenprefixandsuffixwith ma...原创 2019-08-05 09:59:00 · 162 阅读 · 0 评论 -
leetcode 1032. Stream of Characters
Implement the StreamChecker class as follows: StreamChecker(words): Constructor, init the data structure with the given words. query(letter): returns true if and only if for some k >= 1, the last...原创 2019-09-20 14:23:02 · 160 阅读 · 0 评论