![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 120 阅读 · 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 · 110 阅读 · 0 评论