Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 15, 2021 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/24eca40f8375a0a38913ffb85c589fc4 to your computer and use it in GitHub Desktop.
Save parzibyte/24eca40f8375a0a38913ffb85c589fc4 to your computer and use it in GitHub Desktop.
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