-
-
Save parzibyte/bcfb493fadecb9ab3461d8e97be5f6a9 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
def __inorden_recursivo(self, nodo): | |
if nodo is not None: | |
self.__inorden_recursivo(nodo.izquierda) | |
print(nodo.dato, end=", ") | |
self.__inorden_recursivo(nodo.derecha) | |
def __preorden_recursivo(self, nodo): | |
if nodo is not None: | |
print(nodo.dato, end=", ") | |
self.__preorden_recursivo(nodo.izquierda) | |
self.__preorden_recursivo(nodo.derecha) | |
def __postorden_recursivo(self, nodo): | |
if nodo is not None: | |
self.__postorden_recursivo(nodo.izquierda) | |
self.__postorden_recursivo(nodo.derecha) | |
print(nodo.dato, end=", ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment