Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Aug 7, 2019
Embed
What would you like to do?
// Probar algoritmo
const arreglo = [1, 2, 5, 8, 10, 11, 11, 16, 20, 80, 500, 500, 1000, 1002, 5000],
busqueda = 80;
const indice = busquedaBinariaRecursiva(arreglo, busqueda, 0, arreglo.length - 1);
console.log("El valor %s está en el índice %d", busqueda, indice);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment