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 1cc9920 commit f0e3f95Copy full SHA for f0e3f95
src/main/java/com/thealgorithms/tries/Trie.java
@@ -5,7 +5,7 @@
5
*/
6
class TrieNode {
7
private static final int CHILDREN_NODE_COUNT = 26;
8
-
+
9
private TrieNode[] children;
10
private char letter;
11
private boolean end;
@@ -61,7 +61,7 @@ public Trie() {
61
62
public void insert(String word) {
63
TrieNode head = root;
64
65
for (int i = 0; i < word.length(); i++) {
66
char c = word.charAt(i);
67
@@ -83,7 +83,7 @@ public void insert(String word) {
83
84
public boolean search(String word) {
85
86
87
88
89
0 commit comments