Update Trie.md

This commit is contained in:
Aakash Panchal 2020-05-24 00:50:37 +05:30 committed by GitHub
parent e5fe2c4725
commit f7bea0e794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
}; };
``` ```