摘要: Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, return all strings in the set that have s a 阅读全文
posted @ 2019-03-17 18:10 Zhentiw 阅读(384) 评论(0) 推荐(0)
摘要: For example we have an array of words: What is the best data structure to store the data and easy for search? We can use Trie data structure, it is a 阅读全文
posted @ 2019-03-17 04:29 Zhentiw 阅读(249) 评论(0) 推荐(0)