Created
December 6, 2019 02:58
-
-
Save parzibyte/988c86378ab039d85f2dd4e463cd7535 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
int main(void) { | |
struct Nodo *raiz = nuevoNodo(28); | |
insertar(raiz, 11); | |
insertar(raiz, 96); | |
insertar(raiz, 21); | |
insertar(raiz, 6); | |
insertar(raiz, 97); | |
insertar(raiz, 1); | |
insertar(raiz, 30); | |
insertar(raiz, 10); | |
insertar(raiz, 2); | |
printf("\nImprimiendo preorden\n"); | |
preorden(raiz); | |
printf("\nImprimiendo inorden\n"); | |
inorden(raiz); | |
printf("\nImprimiendo postorden\n"); | |
postorden(raiz); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment