We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12c012 commit 709bd6fCopy full SHA for 709bd6f
src/class044/Code01_TrieTree.java
@@ -2,7 +2,7 @@
2
3
import java.util.HashMap;
4
5
-// 用类描述实现前缀树,路径是数组结构
+// 用类描述实现前缀树
6
// 测试链接 : https://leetcode.cn/problems/implement-trie-ii-prefix-tree/
7
public class Code01_TrieTree {
8
@@ -83,8 +83,8 @@ public int countWordsStartingWith(String pre) {
83
}
84
85
86
-
87
- // 路是数组实现的
+
+ // 路是哈希表实现的
88
// 提交时把类名、构造方法改为Trie
89
class Trie2 {
90
src/class044/Code02_TrieTree.java
@@ -1,6 +1,6 @@
1
package class044;
-// 用固定数组实现前缀树,空间使用是静态的,路径是数组结构
+// 用固定数组实现前缀树,空间使用是静态的
// 测试链接 : https://www.nowcoder.com/practice/7f8a8553ddbf4eaab749ec988726702b
// 请同学们务必参考如下代码中关于输入、输出的处理
// 这是输入输出处理效率很高的写法
0 commit comments