摘要:
Add and Search Word - Data structure design (M) 题目 Design a data structure that supports the following two operations: void addWord(word) bool search( 阅读全文
posted @ 2020-08-06 14:23
墨云黑
阅读(167)
评论(0)
推荐(0)
摘要:
Implement Trie (Prefix Tree) (M) 题目 Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple" 阅读全文
posted @ 2020-08-06 13:58
墨云黑
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号