LeetCode - Implement Trie (Prefix Tree)
摘要:
Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns 阅读全文
posted @ 2021-02-14 14:34 IncredibleThings 阅读(50) 评论(0) 推荐(0) 编辑