mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-07-01 13:06:29 +00:00
Update Trie.md
This commit is contained in:
parent
e5fe2c4725
commit
f7bea0e794
@ -32,10 +32,11 @@ struct trie_node
|
|||||||
vector<trie_node*> links;
|
vector<trie_node*> links;
|
||||||
bool isEndofString;
|
bool isEndofString;
|
||||||
|
|
||||||
trie_node(bool end = false)
|
// Constructor
|
||||||
|
trie_node()
|
||||||
{
|
{
|
||||||
links.assign(alphabet_size, nullptr);
|
links.assign(alphabet_size, nullptr);
|
||||||
isEndofString = end;
|
isEndofString = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user