我正在研究Trie的数据结构并遇到了这段代码
// R-way trie node
private static class Node {
private Object val;
private Node[] next = new Node[26];
}
Run Code Online (Sandbox Code Playgroud)
我理解逻辑,但我没有得到的是,Node将被初始化的深度是多少?
您可以在http://algs4.cs.princeton.edu/code/edu/princeton/cs/algs4/TrieST.java.html查看完整的代码.