嗨,我是C++的初学者,试图实现基本的trie结构.Someone,请帮助。任何反馈都是受欢迎的。我得到一个运行时错误
Line 15: Char 25: error: no member named 'children' in 'Trie'
if(present->children[word[i]-'a']==NULL)
在过去的两天里,我一直试图解决这个问题。还是不知道。
class Trie {
public:
/** Initialize your data structure here
import java.util.*;
public class BFS {
static LinkedList<Node> tracker = new LinkedList<>();
static Node[] nodes = new Node[]{
new Node(1),
new Node(2),
new Node(3),
new Node(4),
new Node(5),
new Node(6),