Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Trie_node::clear() {
- if (children) {
- for (int i = 0; i < 26; i++) {
- if (children[i]) {
- children[i]->clear();
- delete children[i];
- }
- }
- delete [] children;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement