-2
添加单词任何一个可以帮助我如何在特里添加单词真正的新的数据结构需要以一个特里
/**
* This method adds a word to the Trie
*
* @param s - word to add to the Trie
* @param data - Data associated with word s
*/
public void addWord(String s, E data) {
}
您打算自己创建Trie数据结构吗? – Kunal 2014-12-03 06:00:10
告诉我们你做了什么。 – 2014-12-03 07:25:34
维基百科上有一篇Trie文章 - http://en.wikipedia.org/wiki/Trie#Algorithms,您可以在其中找到插入操作的伪代码。 – stan0 2014-12-03 10:48:47