Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 18:42
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/a132c15563aaabb604127e803a10a89e to your computer and use it in GitHub Desktop.
Save parzibyte/a132c15563aaabb604127e803a10a89e to your computer and use it in GitHub Desktop.
<?php
/*
Probar
*/
$numeros = [1, 50, 22, 50, 80, 5164, 5151, 441, 294, 36, 21];
$busqueda = 441;
$indice = busquedaSecuencialEnArregloDeEnteros($numeros, $busqueda);
echo "El número $busqueda está en la posición $indice";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment