-
-
Save parzibyte/0c36f640de3f9ac9947e460c5d74fd1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void preorden(struct nodoCadena *nodo) | |
{ | |
if (nodo != NULL) | |
{ | |
printf("%s,", nodo->cadena); | |
preorden(nodo->izquierda); | |
preorden(nodo->derecha); | |
} | |
} | |
void inorden(struct nodoCadena *nodo) | |
{ | |
if (nodo != NULL) | |
{ | |
inorden(nodo->izquierda); | |
printf("%s,", nodo->cadena); | |
inorden(nodo->derecha); | |
} | |
} | |
void postorden(struct nodoCadena *nodo) | |
{ | |
if (nodo != NULL) | |
{ | |
postorden(nodo->izquierda); | |
postorden(nodo->derecha); | |
printf("%s,", nodo->cadena); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment