-
-
Save parzibyte/24eca40f8375a0a38913ffb85c589fc4 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 __buscar(self, nodo, busqueda): | |
if nodo is None: | |
return None | |
if nodo.dato == busqueda: | |
return nodo | |
if busqueda < nodo.dato: | |
return self.__buscar(nodo.izquierda, busqueda) | |
else: | |
return self.__buscar(nodo.derecha, busqueda) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment