Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 3, 2019 15:40
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/14b937dc5185fe4198e04b4402c9d75f to your computer and use it in GitHub Desktop.
Save parzibyte/14b937dc5185fe4198e04b4402c9d75f to your computer and use it in GitHub Desktop.
// Esta variable es para el índice de arregloSinRepetidos
int i = 0;
for (int x = 0; x < arreglo.length; x++) {
if (esValorUnico(arreglo[x], arreglo)) {
arregloSinRepetidos[i] = arreglo[x];
i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment