Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. int tam_maximo(trie* t)
  2. {
  3. if(t == NULL)
  4. return 0;
  5. int i = 0;
  6. while(i<NUM_CHARS)
  7. {
  8. if(t->se_palavra == 1)
  9. return (1 + tam_maximo(t->filhos[i]));
  10. else
  11. return tam_maximo(t->filhos[i]);
  12. i++;
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement