You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(intj=0; j<SIZE; j++) //try every possible path;
61
+
if(trieSearch(word+i+1, cur->children[j]))
68
62
return true;
69
-
}
63
+
return false; //all possible paths have failed;
70
64
}
71
-
elsebreak;
72
65
}
73
-
returncur&&cur->isWord;
66
+
returncur&&cur->isWord;//the last checking;
74
67
}
75
68
76
-
//Runtime Error - unkonwn!
69
+
//Runtime Error - unkonwn! - pointer of an array -> children;
70
+
// The term comes from "retrieval" and the originator, Edward Fredkin, pronounced it "tree." However, "trey" is the more common pronounciation. "Try" is rare and considered incorrect.
0 commit comments