daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Trie_node::clear() {
  2.     if (children) {
  3.         for (int i = 0; i < 26; i++) {
  4.             if (children[i]) {
  5.                 children[i]->clear();
  6.                 delete children[i];
  7.             }
  8.         }
  9.  
  10.         delete [] children;
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top