Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int tam_maximo(trie* t)
- {
- if(t == NULL)
- return 0;
- int i = 0;
- while(i<NUM_CHARS)
- {
- if(t->se_palavra == 1)
- return (1 + tam_maximo(t->filhos[i]));
- else
- return tam_maximo(t->filhos[i]);
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement