Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 16:53
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/f40b51b7015dbbacdcacc41ab716326d to your computer and use it in GitHub Desktop.
Save parzibyte/f40b51b7015dbbacdcacc41ab716326d to your computer and use it in GitHub Desktop.
"""
Probar con arreglo de cadenas
"""
arreglo = ["Albino", "Bambú", "Becerro", "Contaminación", "Cortina", "Trampolín"]
print("La otra lista es:", arreglo)
busqueda = "Cortina"
indice = busqueda_binaria_recursiva(arreglo, busqueda, 0, len(arreglo) - 1)
print("El elemento {} está en el índice {}".format(busqueda, indice))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment