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 6cbc877 commit 79555bbCopy full SHA for 79555bb
Trie/ReadMe.md
@@ -61,7 +61,24 @@ Let's walk through the algorithm:
61
else
62
63
for each character in key
64
+ if child node with value character does not exist
65
+ break
66
+ else
67
+ node = child node with value character
68
+ decrement length
69
70
+ if length != 0
71
+ let suffix be the remaining characters in the key defined by the shortened length
72
+
73
+ for each character in suffix
74
+ create a new node with value character and let it be the child of node
75
+ node = newly created child now
76
+ mark node as a valid key
77
78
+ mark node as valid key
79
80
81
82
83
84
```
0 commit comments